Page 1 of 1

Form stops working with Data required and anti-spam

Posted: Thu Apr 09, 2020 2:55 pm
by protectourlands
My client requested I add Validate > Data required to their form fields. This broke the form sending it to the error page on send. I eventually figured out it was conflicting with the anti-spam feature in Advanced > Misc > Enable Server Sided Validation. I had to disable this feature to get the form to work with data required fields.

Is there a possible work-around for this? Or are the two features incompatible?

Re: Form stops working with Data required and anti-spam

Posted: Thu Apr 09, 2020 3:07 pm
by Pablo
Maybe the settings are incomplete? For example, maybe you have set a minimum value but no maximum?

Re: Form stops working with Data required and anti-spam

Posted: Thu Apr 09, 2020 3:33 pm
by protectourlands
I don't think that is it Pablo.

Test: Add a form to a page with just 1 editbox field. Check Require data and set the min to 1, max to 100. Test and verify form works. Go to Advanced and select Enable Server Side validation. Form stops working and goes to error page.

Here are two test pages. I cloned test1 to make test2 and only checked the server side validation. Nothing else

Enable Server Side validation unchecked
http://www.hippiechicscatering.com/test1.php

Enable Server Side validation checked
http://www.hippiechicscatering.com/test2.php

Re: Form stops working with Data required and anti-spam

Posted: Thu Apr 09, 2020 3:39 pm
by Pablo
I cannot see what you have done based on the published HTML code.
To be able to help you I need a demo project, so I can see all settings.

Re: Form stops working with Data required and anti-spam

Posted: Thu Apr 09, 2020 3:47 pm
by protectourlands
Sorry Pablo. I was working on it when you replied. Here it is

http://www.hippiechicscatering.com/valtest.wbs

Re: Form stops working with Data required and anti-spam

Posted: Thu Apr 09, 2020 3:53 pm
by protectourlands
OOPS! I left out the success and fail pages. Here it is with those.

http://www.hippiechicscatering.com/valtest.wbs

Re: Form stops working with Data required and anti-spam

Posted: Thu Apr 09, 2020 4:04 pm
by Pablo
I think the issue is related to the spaces in the input field.
"First Name" is not valid. PHP does not support spaces in input names.

See also:
http://www.wysiwygwebbuilder.com/forum/ ... 10&t=64868

Re: Form stops working with Data required and anti-spam

Posted: Thu Apr 09, 2020 4:27 pm
by protectourlands
Yes Pablo, that is probably it. I have never had this be an issue with field names but apparently the server side validation that I just started using doesn't like it. BTW using this and the Do Not Allow URLs has seemed to dramatically reduced form spamming. Thank you for adding these options.

And, thank you so much for taking the time to look into this. You are amazing!