Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I am supposing this is a webform issue since I noticed this behaviour after updating it, but I could be wrong.
After updating from 6.x-3.15 to 6.x-3.16 the email label does not seem to be processed correctly by compact forms (username and multiline text fields work just like before), was there any change to it?
Comment | File | Size | Author |
---|---|---|---|
#30 | email-field.jpg | 16.92 KB | crutch |
#18 | compact_forms_email_textfield-1459346-18.patch | 544 bytes | daveparrish |
#8 | compact_forms.js_.patch | 680 bytes | floydm |
Comments
Comment #1
quicksketchYes, Webform uses a type="email" field instead of a type="text" field now. I'm guessing compact forms does not account for HTML5 elements yet.
Comment #2
castawaybcn CreditAttribution: castawaybcn commentedComment #3
quicksketchComment #4
castawaybcn CreditAttribution: castawaybcn commentedthanks for moving the issue, quicksketch.
Comment #5
lasseitorp CreditAttribution: lasseitorp commentedJquery does not understand an 'input:email' psuedo-class. That's the main problem.
Comment #6
climbing-alien CreditAttribution: climbing-alien commentedSame problem. Are there any ways round it?
Comment #7
quicksketchjQuery should understand the selector "input[type=email]" though. I'm not familiar with the code of this module, but that additional selector seems like it could help.
Comment #8
floydm CreditAttribution: floydm commentedYes, that selector takes care of it, at least in my case. Thank you, quicksketch.
Attached is a patch. Apologies if I'm not submitting this correctly, I'm fairly new to this.
-F
Comment #9
kettultim CreditAttribution: kettultim commentedThat worked beautifully. Thanks Floydm!
Comment #10
bcobin CreditAttribution: bcobin commentedTried it - worked like a charm... thanks much!
Comment #11
satter9 CreditAttribution: satter9 commentedYeah, works great! Thanks for submitting.
Comment #12
Cristobal Wetzig CreditAttribution: Cristobal Wetzig commentedThank you for the patch!
Comment #13
jday CreditAttribution: jday commentedPatch worked for me, Thank You!!
Comment #14
Drupal Centric CreditAttribution: Drupal Centric commentedPatch worked for me D7.12, Webform 7.x-3.17 and Compact Forms 7.x-1.0 thanks.
Comment #15
acPlease commit this - it is a very simple fix and solves the problem.
Comment #16
tars16 CreditAttribution: tars16 commentedPatch also works for me.
Comment #17
joecanti CreditAttribution: joecanti commented+1 - patch worked for me
Thanks! Joe
Comment #18
daveparrish CreditAttribution: daveparrish commentedPatch wouldn't work with drush make so I'm rerolling. Enjoy!
Comment #19
meishme CreditAttribution: meishme commented#18 worked for me. Thanks.
Comment #20
Stan Turyn CreditAttribution: Stan Turyn commentedGuys, anyone know what's the name of password-confirm field on the registration form? (as in 'input:password' but for confirmation field - there is the same problem with it as with e-mail)
Comment #21
Boobaa#18 works for me. Thanks.
Comment #22
MattHer CreditAttribution: MattHer commented#18 works for me for 6.x-1.3 Thanks
Comment #23
castawaybcn CreditAttribution: castawaybcn commented#18 is working for me too. Using 6.x-1.3 as well.
Thanks a lot for this.
Comment #24
sunThanks for reporting, reviewing, and testing! Committed to 7.x-1.x.
A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.
Comment #25
NickWebman CreditAttribution: NickWebman commentedHi,
Thanks for the patch. The label appears appropriately now, but it does not change opacity when it's clicked. Is anyone else experiencing this?
Thanks,
Nick
EDIT: Sorry - user error. Nevermind.
Comment #27
joachim CreditAttribution: joachim commentedcan we get this committed to 6.x pleasE?
Comment #28
joachim CreditAttribution: joachim commentedPatch applies and works perfectly on D6.
Comment #29
jive01 CreditAttribution: jive01 commentedI can confirm the #18 works.
Comment #30
crutch CreditAttribution: crutch commentedworks for 7.x-1.10
after these updates yesterdaylist erasedthen the email label is outside the field. Then only difference I see is that the email field has no class .compact-form-wrapper like the others
Comment #31
xurizaemonThis looks like a duplicate of #1405834: HTML5 new field input type support, and the patch there looks like a more complete solution (which may need a tiny bit of backporting to apply to D6).
Fix here solves only email fields, but #1405834: HTML5 new field input type support brings in email AND tel, url, number, range, date, time, datetime, month, week, colour and search. Let's do that please?
Comment #32
yannickooThis *is* a duplicate of #1405834: HTML5 new field input type support, so let us close this issue and move to the other one. The patch will be backported after it will be applied to the 7.x-1.x branch.
Comment #33
madelyncruz CreditAttribution: madelyncruz commented#8 Works properly. Thanks dude!