Home › Forums › Front-end Issues › Loading field values on front-end form › Reply To: Loading field values on front-end form
Dear elliot,
now I have another question regarding checkbox values.
I’m saving acf form data with ajax to postmeta, for a checkbox field with two checkboxes
value, anothervalue
the data stored by acf if both are checked is:
a:2{i:0;s:5:”value”;i:1;s:12:”anothervalue”;}
when I reload the page, retrieving postmeta and
set $field[‘value’] to a:2{i:0;s:5:”value”;i:1;s:12:”anothervalue”;}
the checkboxes are not checked 🙁
what am I doing wrong here?
Thank you and best regards,
Jan
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users
Helping others is a great way to earn karma, gain badges and help ACF development!
We use cookies to offer you a better browsing experience, analyze site traffic and personalize content. Read about how we use cookies and how you can control them in our Privacy Policy. If you continue to use this site, you consent to our use of cookies.