Support

Account

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.