Closed (fixed)
Project:
Webform
Version:
8.x-5.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
28 Mar 2017 at 16:07 UTC
Updated:
14 Apr 2017 at 12:30 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #2
javivf commentedComment #3
javivf commentedComment #5
jrockowitz commentedThis is HTML5 Email/core validation issue.
http://stackoverflow.com/questions/20573488/why-does-html5-form-validati...
I am not sure we should be fixing this. A better solution would be add #pattern support to the all email elements.
Comment #6
javivf commentedOk, I see... ping me if you wants me for #pattern implementation
Thanks!
Comment #7
prashant.c@javivf
I am not able to apply this patch.
Although i tried by manually adding the code in
WebformEmailConfirm.phpfile from your patch but it is not solving the issue.Apart from email_confirm field, email fields are also not validated for emails of type 'user@domain' and allowing the same, we need to fix the validation issue for all email type fields.
Comment #8
jrockowitz commentedI was surprised that #pattern was not set up for email elements. When I looked into the problem, I realized the Email element should be extending TextBase.
Please review the attached patch.
Comment #10
jrockowitz commentedComment #12
jrockowitz commentedI tested the patch locally, fixed a minor issue, and committed it.
Please download the latest dev release to review.
Comment #13
javivf commentedSorry but I tried with webform/tests/modules/webform_test/config/install/webform.webform.test_element_email.yml with a correct email at Email confirm pattern field/Confirm email field and I got this error:
Comment #14
jrockowitz commented@javivf Please check your pattern using a simple textfield. The #pattern validation is being handled by Core, I am not sure this webform issue.
Comment #15
javivf commented@jrockowitz I agree, the problem is with pattern, please review if the patch make sense for you. Thanks!
Comment #16
javivf commentedComment #18
jrockowitz commented