Page 1 of 1
Contact Form : Validation doesn't work
Posted: Fri Nov 22, 2019 10:46 am
by stressless
The field by field validation of the Form of menu item "demande d'intervention" of
https://telweb.ch/wwb/ is not applied.
However, the JS code seems to be ok in the page source.
Thanks for any help
Dan
* * * * * * * *
Re: Contact Form : Validation doesn't work
Posted: Fri Nov 22, 2019 11:28 am
by Pablo
I think there is an error in your validation settings.
The browser indicates an error in the regular expression of 'edit_nom'
Note that I cannot see what you have done based on the published page. To be able to help you, I need a demo project (not the full project).
Related FAQ:
viewtopic.php?f=10&t=82134
Re: Contact Form : Validation doesn't work
Posted: Fri Nov 22, 2019 2:47 pm
by stressless
Understood !
Here is the demo project in which fields validation doesn't work :
https://telweb.ch/wwb/demo_form.wbs
Thanks. Dan
Re: Contact Form : Validation doesn't work
Posted: Fri Nov 22, 2019 2:56 pm
by Pablo
The problem is in the 'Other' section of the validation settings.
The '-' (hyphen) must be escaped:
otherwise the regular expression will not be valid.
Re: Contact Form : Validation doesn't work
Posted: Fri Nov 22, 2019 3:44 pm
by stressless
Outstanding support ! Many Thanks.
Dan
* * * * * * * *