Home › Forums › Front-end Issues › Frontend Form insert checkbox in CPT › Reply To: Frontend Form insert checkbox in CPT
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.
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.