Support

Account

Home Forums Front-end Issues Disable acf_form() navigate away warning Reply To: Disable acf_form() navigate away warning

  • Hi Jess –

    Yes, understood. I might approach this differently.

    When you save a form, typically that form then posts to the page, or some other page, to process the form data. It sounds like you have two forms on the page, two ways for the user to post to the backend to process data from two seperate forms.

    You might want to look into combining the two forms into one, so that when the form is finally posted, all the form data is sent to the backend to create the PDF.

    You could do this by filtering in opening and closing div tags when certain fields are loaded. Say, you have 10 fields, add a filter to add an opening div tag for field 1, than a closing after field 5 (or a closing and opening before field 6) and then another closing after field 10.

    <form>
        <div>
            <input>
        </div>
        <div>
            <input>
        </div>
        <input type=submit>
    </form>

    Now all your input values will be posted to the server at once. There are some other ways to tackle this as well. LMK if this is along the path that might be helpful.