Hello Admin,
I am trying to include a custom validation on some of the fields (email and phone number) thus far but noticed irrespective of the RegEx code used, the custom error text will just remain uncleared.
On a particular email field, I would want to restrict the input to only a particular domain, says example.com.
Note: all email usernames have two names separated by dot (.)
Regex tried are:
^\w+[.]+\w+[@][example[.][com]$
^\w+[.]+\w+[@][e][x][a][m][p][l][e][.][com]$
^\w+[.]\w+[@][e][x][a][m][p][l][e][.][com]$
^\w+[.]+\w+[@][e][x][a][m][p][l][e][.][c][o][m]$
^(\w+[.]+\w+[@][e][x][a][m][p][l][e][.][c][o][m])$
trying to validate
name
a.name
b@example.com (for true)
and every other domain for false
The error remains
On the phone field, I wanted to restrict input to the only French phone number
I tried the following
^([+][3][3][1-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9][0-9])$
trying to validate +33111111111 or +33999999999 (for true, and every other country code for false)
Outcome: All validation gives the same invalid input (false). irrespective of the input.
Visforms Version 3.12.10
On Joomla! 3.9.13