Completed Form Verification

How do I set the default Form Verfication to the top of the page, not the bottom of the form?

Product:
Wix Studio Editor

Once someone completes a form on the website, a verification pops up, but at the bottom of the page. Our clients don’t know to scroll to the bottom to view the completed verification. How do we change it so this pop up verification defaults to load at the top of the page?

I’ve encountered this issue, too. As I have not figured out how to move the message to the top of the page, I have used the go-to a URL function instead and created a page that confirms the form submission. It works well for my clients. This can be done using form settings. See attached. BTW, this refers to the new Wix forms.

3 Likes

Hi, @Tim_Smith !!

If you don’t need to handle everything strictly within the Wix Form element, there’s another option you can consider. You could place a text element above the form and use a simple piece of code to show a message only after the form is submitted. :smiling_face_with_sunglasses: This gives you more flexibility to design the behavior however you like. Instead of a text element, you could also choose to display a lightbox—it’s totally up to you. The code itself is very simple and just uses the onSubmitSuccess() function and onSubmitFailure() function. :innocent:

$w.onReady(function () {

    $w("#form1").onSubmitSuccess(() => {
        $w("#messageText").text = "Success!!";
        $w("#messageText").show();
        setTimeout(() => $w("#messageText").hide(), 5000);
    });

    $w("#form1").onSubmitFailure((error) => {
        $w("#messageText").text = "Failure!!";
        $w("#messageText").show();
        setTimeout(() => $w("#messageText").hide(), 5000);
    });

});
1 Like