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.
As in the title... I have a mandatory select list with a label which is fine until I tick the 'Allow "Other..." option' checkbox - then the label disappears.
I'm working around the problem for the moment by adding some markup to replace the label.
Comments
Comment #1
massiws CreditAttribution: massiws commentedSame problem here with Webform 7.x-3.18 and select_or other 7.x-2.19.
The label of the select-option have always a class element-invisible, so it is always hidden, even if you change settings to inline or above.
Comment #2
Danny EnglanderCorrect me if I'm wrong but isn't this an issue with the Select (or other) module and not webform? At any rate I was able to duplicate the issue when the "other" option was enabled whether the label was set to inline or above. In that regard, you should probably transfer this issue to the Select (or other) queue. Note do not open a new issue there, simply change the project name using the auto complete widget.
Comment #3
quicksketchHiya guys. This is probably a Webform issue, since Webform does the integration with Select or Other itself. Thanks for the help nonetheless @highrockmedia. :)
Comment #4
drewkeller CreditAttribution: drewkeller commentedHere's what's working for me (in components/select.inc, line 422).
If I comment out this section and set the label of the webform component to inline, it just never shows up in the displayed form. I guess that's what the coded comment above is talking about.
Comment #5
jmsosso CreditAttribution: jmsosso commentedThe issue was introduced in Select (or other) 7.x-2.19, I just back to 7.x-2.18 and the labels shows up correctly.
Comment #6
massiws CreditAttribution: massiws commentedI can confirm: Select (or other) 7.x-2.18 works fine: the patch select_or_other_required-2030249-1.patch added in Select (or other) 7.x-2.19 cause label disappear.
Comment #7
fnikola CreditAttribution: fnikola commentedConfirming that #5 backing out Select (or other) 7.x-2.19 to 7.x-2.18 as jmsosso corrects the issue of the label not displaying.
Comment #8
massiws CreditAttribution: massiws commentedProblem fixed: Select (or other) 7.x-2.20 works fine!
Thank you.
Comment #9
DanChadwick CreditAttribution: DanChadwick commented