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.
Hello there,
I have discovered some weird functionality for overriding labels of the widget. I believe expectation is about if overriding setting is turned on it should replace label of the widget depending on what singular is set (if there is only value or multiple values possible):
1. Widget settings for overriding labels:
2. Overriding widget label for single value:
3. Overriding widget label for multiple values:
And it should work with both of widgets (Simple and Complex)
Comment | File | Size | Author |
---|---|---|---|
#2 | 2882644-2-overriding-ief-widget-labels.patch | 2.96 KB | alunyov |
| |||
2017-05-31_1204-IEF-3.png | 50.32 KB | alunyov | |
2017-05-31_1202-IEF-2.png | 42.54 KB | alunyov | |
2017-05-31_1200-IEF-1.png | 15.19 KB | alunyov |
Comments
Comment #2
alunyov CreditAttribution: alunyov at FFW commentedAnd here is patch
Comment #3
nkoporecTested the patch and it works as expected, the title is now overwritten by a label.Marking it as RTBC.
Comment #4
bojanz CreditAttribution: bojanz at Centarro commentedThe screenshotted settings have nothing to do with the widget title, they're used by the complex widget in buttons and subforms.
The widget title is taken from the field name, and no Drupal widget makes it configurable. Use a form alter.