Hi,
i try to validate a phone number in my form with a regular expression. That´s the code entered in the designer field "validation/regular expression"
[0-9 ()-/+]
This works fine with the Javascript-validation filling out the form, but when the form is send i get a validation error.
Any idea?
thanks for your suggestions.
Pascal
i try to validate a phone number in my form with a regular expression. That´s the code entered in the designer field "validation/regular expression"
[0-9 ()-/+]
This works fine with the Javascript-validation filling out the form, but when the form is send i get a validation error.
Any idea?
thanks for your suggestions.
Pascal
The problem is solved.
First you need to escape the regular expression.
/ regular expression/
example: /[0-9 ()-+]/
Second I did not escape the slash ( / ). You need to escape with "\/" to accept the slash.
example: /[0-9 +()-\/]/
Hope this can help users to start with "regular expression".
Pascal
First you need to escape the regular expression.
/ regular expression/
example: /[0-9 ()-+]/
Second I did not escape the slash ( / ). You need to escape with "\/" to accept the slash.
example: /[0-9 +()-\/]/
Hope this can help users to start with "regular expression".
Pascal
This topic is locked and no more replies can be posted.