I have users on my site, and they are non-technical. When you are adding a email URL or Phone field to a form, users are required to add the Regex pattern themselves. This proves to be difficult for basic users.
In the main Webforms module, I would like to see the Regular expressions be pre-populated in the field when you are checking pattern.
Email: ^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$
URL: ^(https:\/\/www\.|http:\/\/www\.|https:\/\/|http:\/\/)?[a-zA-Z]{2,}(\.[a-zA-Z]{2,})(\.[a-zA-Z]{2,})?\/[a-zA-Z0-9]{2,}|((https:\/\/www\.|http:\/\/www\.|https:\/\/|http:\/\/)?[a-zA-Z]{2,}(\.[a-zA-Z]{2,})(\.[a-zA-Z]{2,})?)|(https:\/\/www\.|http:\/\/www\.|https:\/\/|http:\/\/)?[a-zA-Z0-9]{2,}\.[a-zA-Z0-9]{2,}\.[a-zA-Z0-9]{2,}(\.[a-zA-Z0-9]{2,})?
Phone: ^[\+]?[(]?[0-9]{3}[)]?[-\s\.]?[0-9]{3}[-\s\.]?[0-9]{4,6}$
No change, but if they don't add a regular expression, it uses a default one for that type of field.
Closed: won't fix
5.31
User interface
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
No activities found.