Streaming live at 10am (PST)

Disabling Form Submission?

Is it possible to disable a form’s email submission? I have a site with three forms on it and would like to prevent one of them from sending emails through the Form settings, as it’s a zip code submission that redirects to an external booking page. Is this possible somehow?

1 Like

I think if you change the action to post the form elsewhere, it won’t be sent to Webflow. Could you try that out?

@samliew what’s the best way to have it post elsewhere? It’s using a custom redirect on submission right now but I can’t figure out how to not have it submit emails through Webflow.

This is the script I’m using to disable form submissions while under development, perhaps you could insert your custom code in the submit function (leave the return false at the end to stop webflow default)

Webflow.push(function() {
  // Disable submitting form fields during development
  $('form').submit(function() {
    alert('Form submissions have been disabled during development.');
    return false;

Also, feel free to contact me for further code help and/or customization of third-party plugins

@samliew You posted the response in the link below to one of my inquiries back in January, but it appears now that I can’t get this code to work in a new project. Any ideas why? I’m using this for a form that’s contained within a blog post template page.

Could you please edit Screenshot_2017-08-16_140811 and provide ALL the necessary details in your post so we can take a look at your site/issue?

In future if you want faster replies and more accurate answers, I suggest including all the details listed in the link above before someone has to ask.

Hope to hear from you soon. Thanks!

It’s still working for me. You probably have a JavaScript error elsewhere in your code. Always check your console.

You can never receive form submissions in Webflow if the form action is modified.

What you can do is leave it blank/default to let the form post to Webflow, but you add a Zapier trigger to do some other thing when Webflow receives the form submission.

1 Like

so there is really no way possible to receive the submission? Not even with custom coding?

var listOfFormsToDisabledWebflowSubmission=[“onboardingstep0”,“onboardingstep1”,“onboardingstep2”,“Signup-Form”]
(".w-form").each(function() { if(listOfFormsToDisabledWebflowSubmission.indexOf((this).find(“form”).attr(‘id’))!=-1){

I’ve achieved this by setting the form action to ‘/’ in the forms settings. It seems to work