Streaming live at 10am (PST)

Disabling Form Submission?


#1

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?


Disabling Form Submissions
#2

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


#3

@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.


#4

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)

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

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


#6

@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.


#8

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!


#9

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


#10

Hi @samliew,

On one of my sites I have changed the action to post somewhere else, therefore, I am not receiving form submissions in Webflow. Is there any way to still receive form submissions in Webflow or via email while having a custom action?

Here is a preview link to my site: https://preview.webflow.com/preview/homevaluationreport?preview=aaaa08466b85ccd7c8b0b0851d4b75cd

Here is the site live: www.easyhomeworth.com

Thanks!!


#11

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.


#12

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

Would it be possible if I left the action as “Webflow Default” but created a Webhook in Zapier?

I have tried this second method above but had no success

What I am trying to accomplish is when someone enters their information into my form on Webflow (in picture below) upon pressing submit, the data they entered in the form will be parsed into the URL in the home valuation website (www.buywithbarnes.com/home-valuation) and generate that persons home value in the second website. It currently works correctly when I place (www.buywithbarnes.com/home-valuation) in the action field in the submit button but the issue is that I cannot receive the form submission fields.

Here are the steps I used in Zapier to attempt the Webhook, does it appear that I am doing something incorrectly?

I really appreciate the help!! @samliew @cyberdave