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:
Widget settings for overriding labels
2. Overriding widget label for single value:
Overriding widget label for single value
3. Overriding widget label for multiple values:
Overriding widget label for multiple values
And it should work with both of widgets (Simple and Complex)

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

alunyov created an issue. See original summary.

alunyov’s picture

Status: Active » Needs review
FileSize
2.96 KB

And here is patch

nkoporec’s picture

Assigned: alunyov » Unassigned
Status: Needs review » Reviewed & tested by the community

Tested the patch and it works as expected, the title is now overwritten by a label.Marking it as RTBC.

bojanz’s picture

Status: Reviewed & tested by the community » Closed (won't fix)

The 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.