You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Usually, you specify a pattern with delimiters, which is probably why it worked when you added the dollar and caret. It might have thought the slash was a delimiter and thrown an error. So yeah usually you need to escape such things.
Hi
I used a call to this input like that :
<txp:com_connect_text
class="form-control" name="nom" label="nom" placeholder="Nom du 1er Responsable " required break="" pattern="^[ A-Za-z0-9_@./,#&+-]$"/>The browswer dont comlained about the pattern but when submitted i got errors from the plugin :
Tag
error: <txp:com_connect_text class="form-control" name="raison" label="raison" placeholder="Raison Sociale " required break="" pattern="[ A-Za-z0-9_@./,#&+-]"/> -> Warning: preg_match(): Unknown modifier ',' while parsing form inscription on page defaultI tested the pattern on this live preg_match : https://www.phpliveregex.com/#tab-preg-match and there is no complain.
The text was updated successfully, but these errors were encountered: