Problem/Motivation
`Clientside validation` triggers and prevents adding `mailto` in Link fields, a few of our clients have reported this as a bug having seen it working ok before.
Steps to reproduce
In a Link field, add an email in the URL field.
See the validation error "please match the requested format".
Proposed resolution
`clientside_validation` runs its `addValidation()` method as a #process callback, which fires after `formElement()` returns.
The result is a browser "please match the requested format" validation error.
This patch adds `|[mM][aA][iI][lL][tT][oO]:.+` to the `LINK_GENERIC` pattern, so that `mailto:` URIs pass browser validation alongside the existing allowed URL formats.
Note that `mailto:` will need adding as a prefix before the email address.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3611563-clientside_validation-link-generic-mailto-support.patch | 515 bytes | michelle-buckby |
Comments
Comment #2
michelle-buckby commented