Hi, in trying to update a checkbox field from the back-end and cant figure it out.
I want:
update_field(“field_5a82e667ead50″,true ,$location_user);
I have tried :
https://support.advancedcustomfields.com/forums/topic/edit-checkbox-selection-update_field/
and
https://www.advancedcustomfields.com/resources/update_field/
Scenario:
I have a checkbox that can be true or false (checked or not)
<ul class=”acf-checkbox-list true_false”>
<input type=”hidden” name=”fields[field_5a82e667ead50]” value=”0″>
<label>
<input id=”acf-field-hjemmelsinnhaver-1″ type=”checkbox” name=”fields[field_5a82e667ead50]” value=”1″>
Ja, jeg er hjemmelsinnhaver
</label>