Hi,
I'm trying to modify the value of one of my extra fields by clicking on a button.
The part of executing by clicking on a button is already done.
If I'm not mistaken the values are stored in __k2_items > extra_fields as JSON. And that's the tricky part. How can I modify these values and update the database?
[
{"id":"1","value":"2017-09-04"},
{"id":"2","value":"some vlaue"},
{"id":"3","value":"some name"},
{"id":"4","value":"0123456789"},
{"id":"5","value":"some text"},
{"id":"6","value":"some email"},
{"id":"9","value":"2"}
]
I would like to change the value of id '9' from 2 to 3.
Any help would be great. Thanks in advance.
Aram