Home › Forums › General Issues › Frontend form – post via ajax? › Reply To: Frontend form – post via ajax?
@rsrc1147 thanks a lot for the code example, it helped me greatly.
i only have two additional questions:
1) this code works perfectly with text inputs, selects etc, but it doesn’t seem to be able to save radio buttons and checkboxes (so basically elements which use hidden elements), is there a way around it?
2) i am not sure if i understand the validation part correctly. in the code example, required inputs are checked whether they’ve been filled, but for instance email fields are not being validated for their type (so user can just fill anything).
thanks in advance for any kind of information about these issues.
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!
The most recent ACF Chat Friday featured a live demo of how to register CPTs directly in the plugin, one of our most requested features. Check out the summary below for a replay of the demo, and don’t forget to register for the next session! https://t.co/k2KQ3WWBAz— Advanced Custom Fields (@wp_acf) March 9, 2023
© 2023 Advanced Custom Fields.