Home › Forums › Front-end Issues › Create Front End Form using Shortcode › Reply To: Create Front End Form using Shortcode
I would like to suggest the following public functions for developers:
acf_prepare_form( formId )
All it does is add the appropriate JS setup code/links to the header or footer so that forms can be rendered.
acf_render_form( formId )
All it does is render the form and any necessary JS code for validations, etc…
acf_process_form( formId )
All it does is process the form data and does not output any HTML, just error codes if there is an error.
Of course, they may already exist, I’ll have to dig through the code and see how forms work in ACF.
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.