Support

Account

Home Forums Front-end Issues Is it possible hiding a form after a submission using acf_form()?

Solving

Is it possible hiding a form after a submission using acf_form()?

  • I am using acf_form() for a front end submission.
    It works fine, but I wanna hide a form after a submission, show Thanks message and if possible add the url of the new post created.

  • Alter the “return” argument of acf_form() to the page you want to show. Create a custom php template for this page. You will need to extract the post_id from the URL query string. Use the post ID to get the link and display it.

  • Thank-you for the reply.

    I’m a newbie to PHP, can you give me an example code which I can use to get the result.

    regards
    Neil

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.