Welcome to the LimeSurvey Community Forum

Ask the community, share ideas, and connect with other LimeSurvey users!

RegEx validation always firing errors when submit form

More
11 years 10 months ago #105609 by stevelegare
Hello,

Everytime I put a regex validation in a question, the JavaScript validator works well but the form send me an error telling me that a field is not answered.

My RegEx is similar to /^[\d!#$%&'*+./=?_`a-z{|}~^\-]+@[\d.a-z\-]*gmail\.com\b/ and my question is required.

Without the RegEx, everything is fine.

Do I miss something? Do you have any suggestions?
The topic has been locked.
More
11 years 10 months ago #105630 by tpartner
The problem may be the curly braces in the regex - see the note here - www.limesurvey.org/manual/Workarounds:_M...ime_using_Javascript .


.

Cheers,
Tony Partner

Solutions, code and workarounds presented in these forums are given without any warranty, implied or otherwise.
The topic has been locked.
More
11 years 10 months ago #105667 by stevelegare
Thanks for your quick answer.
I will manage it another way :-)
The topic has been locked.
Moderators: tpartnerholch

Lime-years ahead

Online-surveys for every purse and purpose