i have build a custom frontend form. It works nice for text fields and dropdown selection. But how can i insert values from checkboxes or radio buttons?
I know acf comes with support for frontend forms, but this don’t fit our needs.
So how can i update the checkbox values with the checkbox filed?
I don’t think there is enough information here for me to help you, so this is a guess.
You say that text fields work fine and the checkbox does not. I am assuming that you are somehow using the values stored in an ACF field for these but you’re not using get_field() to get the values. Text fields are stored as simple text fields the same way that WP stores custom fields. Checkbox fields are stored as serialized arrays in the database. If you’re using anything other than get_field() to get these values then you may be dealing with the returned value in the wrong way.
More information would probably be helpful, like how you’re storing the checkbox value and how you are trying to get those values and display them in your custom form.
Viewing 2 posts - 1 through 2 (of 2 total)
You must be logged in to reply to this topic.
Welcome to the Advanced Custom Fields community forum.
Browse through ideas, snippets of code, questions and answers between fellow ACF users