• Resolved chelminski

    (@chelminski)


    Hi!
    I’d like to ask you for help. I am creating a form that collects data en masse, it works in such a way that a given person sits down to the form and fills it out, e.g. 40 times with the collected data. I have ajax enabled, also text confirmation after filling. This is a pain because the person has to refresh the page every time. For many people, this generates a lot of traffic and delays data filling. What can I do? I would like the person to see a confirmation after submitting the form, and a blank form under the confirmation that he could fill out again without refreshing the page. Alternatively, if that’s too complicated, have the person just see a blank form after clicking ‘submit’. Sorry for my English if I made mistakes. It is not my native language.

Viewing 9 replies - 1 through 9 (of 9 total)
  • Hi

    U can follow the below documentation. To display the confirmation below the submit replace it with ‘wpforms_frontend_confirmation_message_before ‘ hook
    https://wpforms.com/developers/wpforms_frontend_confirmation_message/

    Thread Starter chelminski

    (@chelminski)

    How can I apply this to the whole site? Alternatively, if I could use a shortcode in the confirmation, that would be very convenient.

    Thread Starter chelminski

    (@chelminski)

    I’m more interested in making the user see a “fill out the form again” button on the confirmation page after submitting the form, but without reloading the page (ajax).

    Hi @chelminski

    Thanks for reaching out! If you’d like to display the confirmation message and the ability to refill the form again in the same page, I would recommend you to check this developer guide.

    Also, please check the FAQ mentioned in the same guide.

    Hope this helps! ??

    Thread Starter chelminski

    (@chelminski)

    It doesn’t seem to work. Do you have any advice?

    • This reply was modified 1 year, 7 months ago by chelminski. Reason: (restored photo)

    Hey @chelminski — sorry about that!

    I tried to add the code to my set site and could not replicate the issue. Here is a reference screencast.

    Could you please try again and let me know if you are still facing the issue?

    In case it helps, here’s our tutorial with the most common ways to add custom code like this.

    For the most beginner-friendly option in that tutorial, I’d recommend using the WPCode plugin.

    Thread Starter chelminski

    (@chelminski)

    Hi ??
    In the meantime, I contacted the WP FORMS community on Facebook. I was told that the error might occur when I have 2 snippets with the same function. So I changed “wpf_dev_frontend_confirmation_message” to “confirmation1190” and everything works. Well, almost everything…

    I can’t send the form a second time.

    Temporary video

    I also made a temporary site for testing this form publicly available.

    Temporary video

    Hi @chelminski sorry about the trouble here!

    If you’re seeing a blank page or an AJAX error in the console log, please make sure you’ve disabled AJAX as mentioned in the steps above. This snippet will only work if AJAX is disabled on the form.

    Hi @chelminski

    We haven’t heard back from you in a while, so I’m going to go ahead and close this thread for now. But if you’d like us to assist further, please feel welcome to continue the conversation.

    Thanks

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Refilling after submission’ is closed to new replies.