Streaming live at 10am (PST)

Need to force error message on form submission


#1

I'm working on creating a 'login' page for a site similar to this http://mcapny.com/investor-login.php

The backend will not be live for quite some time, so the form for now will be a dummy.
I want the user to enter 'username' & 'password' into the appropriate fields - but upon hitting submit I want to force display the error state of the form. Essentially it will always behave as if there is an error until we connect the page to a 3rd party portal.

Is there any way I can force the error state?

Thanks


#2

No, but you can disable form submissions. Put this in your site dashboard custom code "Footer Code" textarea:

<script>
Webflow.push(function() {
    // Disable submitting all forms
    $('form').submit(function() {
        alert('Form submissions have been disabled during development.');
        return false;
    });
});
</script>

#3