Hello,
Thank you for your response.
I tested the code on debug page and it successfully update the normal text field value. But this field which I am updating here is checkboxes.
So the output of get_meta_data is a format like checked_val1 | checked_val2 | ..
How do I use update_field on such data and update checked boxes??
Thanks!