Form Submit button not working | Community
Skip to main content
Trevor_Parsell
New Participant
September 19, 2017
Solved

Form Submit button not working

  • September 19, 2017
  • 3 replies
  • 8030 views

Hello,

My form is not submitting and I can't figure out why. Has anyone had this problem before? Here is an example of the URL where the form lives:

Sanford Whiteman

Best answer by SanfordWhiteman

Thanks, Sanford!

I am not familiar with how a bot script approaches filling out forms so this is helpful.

Would you recommend removing this entirely? Is it a waste to try to prevent these bot form fills or is there a better method?


You can try to use the honeypot concept, but there's no need to do anything in JS. It's only on the server that it makes sense (in a trigger SC, you would see if a New Lead unexpectedly has a value for a field that should be blank).

I recommend a ReCAPTCHA over the honeypot, but you can hook up the honeypot and see what happens.

The reason the honeypot is doomed if someone targets your form with some intelligence is that by doing a sample form post, it's easy to see that field posts no value by default (even if it weren't clear from your JS!).

Boggles my mind (not blaming you!) that after 20 years of web forms, people still suggest browser-side JS to combat clients that aren't browsers.

3 replies

Trevor_Parsell
New Participant
September 19, 2017

Thanks all for checking on this. I found that this was related to the honeypot script we use on landing page templates to prevent bots from submitting forms.

The form I was using did not have the hidden "honeypot" field so the script in the template was preventing all form submissions. Once I added the hidden field, it fixed the issue.

Thanks!

SanfordWhiteman
New Participant
September 19, 2017

Trevor, it doesn't make any sense to check the honeypot value from JS. The whole concept (which has limited efficacy anyway) is that a bot won't use JavaScript, instead blindly filling all fields.  You check the honeypot on the server, not on the client side.

Trevor_Parsell
New Participant
September 19, 2017

Hey Sanford,

This is the method we used to add the honeypot a while back. Is this incorrect?

http://jennamolby.com/how-to-prevent-form-spam-by-using-the-honeypot-technique/

Thanks!

Dan_Stevens_
New Participant
September 19, 2017

Trevor, it works for me.

Josh_Hill13
New Participant
September 19, 2017

did you put custom code on this page?

Trevor_Parsell
New Participant
September 19, 2017

Hey Josh,

This is a custom landing page template that we use.