So, is this possible to display custom error page on Swift_RfcComplianceException with Forms or Error plugins?
Hi Mike, if you set the input type as email
, it uses the HTML5 email field and modern browser validate this on the client-side (http://www.w3.org/TR/html-markup/input.email.html).
You can set
validate:
rule: email
on the field and Form will validate this field server-side prior to submitting the form.
Example:
- name: email
label: Email
placeholder: Enter your email address
type: email
validate:
rule: email
required: true
Hi flavio,
I have the validate rule set in the form, which is otherwise working fine, but the validation does not seem to work. It throws an error instead:
Server Error
Sorry, something went terribly wrong!
0 - Address in mailbox given [faegf] does not comply with RFC 2822, 3.6.2.
For further details please review your logs/ folder, or enable displaying of errors in your system configuration.
I’m using Firefox 43, so it should be up to speed with HTML5
Update: Just tried in Chrome 47, same error.