• Resolved pierremaitre

    (@pierremaitre)


    Hi there,

    How can I set a success message when submitting a form with a redirection?

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author Konrad Chmielewski

    (@hwk-fr)

    Hello,

    Thanks for the feedback!

    If you decide to redirect the visitor on form submission, then all submitted data are lost, and the system cannot automatically display a success message. Additionally, you cannot use a helper like acfe_is_form_success() (see documentation) since the page doesn’t know it had a form that has been submitted. Lastly, you can redirect on any page or website, which isn’t controlled by ACFE.

    This is why you’ll have to display the success message by yourself. For example, if you redirect the visitor to a page called /thank-you, then you’ll have to add your own HTML/PHP on this page to display a message.

    Hope it helps!

    Have a nice day!

    Regards.

    Thread Starter pierremaitre

    (@pierremaitre)

    Hi Konrad,

    Got it, thank you for this explanation.

    Regards,
    Pierre

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.