Contact Form : Validation doesn't work

Issues related to forms.
Post Reply
stressless
 
 
Posts: 8
Joined: Wed Oct 23, 2019 9:41 am

Contact Form : Validation doesn't work

Post 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
* * * * * * * *
User avatar
Pablo
 
Posts: 21580
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Contact Form : Validation doesn't work

Post 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
stressless
 
 
Posts: 8
Joined: Wed Oct 23, 2019 9:41 am

Re: Contact Form : Validation doesn't work

Post by stressless »

Understood !
Here is the demo project in which fields validation doesn't work : https://telweb.ch/wwb/demo_form.wbs
Thanks. Dan
User avatar
Pablo
 
Posts: 21580
Joined: Sun Mar 28, 2004 12:00 pm
Location: Europe
Contact:

Re: Contact Form : Validation doesn't work

Post by Pablo »

The problem is in the 'Other' section of the validation settings.
The '-' (hyphen) must be escaped:

Code: Select all

.\-,'
otherwise the regular expression will not be valid.
stressless
 
 
Posts: 8
Joined: Wed Oct 23, 2019 9:41 am

Re: Contact Form : Validation doesn't work

Post by stressless »

Outstanding support ! Many Thanks.
Dan
* * * * * * * *
Post Reply