Page 1 of 1
Form fields not validating
Posted: Mon Jun 27, 2022 5:32 pm
by JohnR
I have a form
www.ridgley.ca/mlic.php which contains a number of fields. Problem I'm encountering is you can click the Submit button with the form full of blank fields. I know I must have missed something - just wondering what???
http://www.ridgley.ca/mlic.php
Re: Form fields not validating
Posted: Mon Jun 27, 2022 5:54 pm
by Pablo
Why did you use 'a'? That is not a valid number
This must be a numeric value.
Re: Form fields not validating
Posted: Mon Jun 27, 2022 6:40 pm
by JohnR
I changed all the minimums to 2 and tried the form again. Same problem. The Submit button appears when you enter the email field at the end of the form. I can click the Submit and it sends a form full of empty fields.
Re: Form fields not validating
Posted: Mon Jun 27, 2022 8:44 pm
by Pablo
I cannot see what you have done based on the published page.
But the error console of the browser indicates that there is an issue in the settings of TextArea7
If you need further assistance the please share a DEMO project, because I need to see your settings to be able to help you:
https://www.wysiwygwebbuilder.com/forum ... 10&t=82134
Re: Form fields not validating
Posted: Tue Jun 28, 2022 6:02 pm
by JohnR
Project uploaded to ridgley.ca Project name - MarriageForm.wbs
Re: Form fields not validating
Posted: Tue Jun 28, 2022 7:38 pm
by Pablo
Can you please give a direct link to the file?
Re: Form fields not validating
Posted: Wed Jun 29, 2022 3:48 pm
by JohnR
Re: Form fields not validating
Posted: Wed Jun 29, 2022 4:52 pm
by Pablo
In TextArea7, you have set the data type to 'custom', but you did not enter a valid regular expression. This make the entire validation invalid.
When implementing validation, I suggest to do one thing at a time. Then if something does not work then you at least know where to look for the error.
With so many input fields it is very time consuming for me to check for invalid settings.
Also, I recommend to use edit-boxes, instead of text area. A text area is for multi-line input.