Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at

  • Marc-André 63 posts 276 karma points
    Feb 20, 2020 @ 17:44

    Prevent page from refreshing after a form is submited


    In Umbraco Forms, I want to display a message instead of redirect to a confirmation page. The page still refresh and then I see my confirmation message. Sinc emy form is in a modal, I don't want my page to refresh.

    How can I achieve that?

    Thanks Umbraco community!

  • Andy Shokry 5 posts 75 karma points
    Apr 15, 2020 @ 14:58
    Andy Shokry

    I would like to know the answer to this as well. Everything seems to work, except the page is refreshed when the form is submitted.

    Umbraco Forms 7.3.1

  • Yakov Lebski 426 posts 1653 karma points
    Apr 28, 2020 @ 15:34
    Yakov Lebski

    you can just do ajax call instead of regular submit

        url: $form.attr('action'),
        type: 'POST',
        cache: false,
        data: $form.serialize(),
        success: function (result, textStatus, request) {
            //Show popup here
Please Sign in or register to post replies

Write your reply to: