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.
Instead of static label for country drop down list, Make label same as field one.
Comment | File | Size | Author |
---|---|---|---|
#2 | countries-make-label-dynamic-2386599-2.patch | 885 bytes | mqanneh |
Comments
Comment #1
mqannehComment #2
mqannehComment #3
mqannehComment #4
Alan D. CreditAttribution: Alan D. commentedAt this late stage, I'd suggest just using a widget form alter to do this. There was something funny with different cardinality here.
https://api.drupal.org/api/drupal/modules!field!field.api.php/function/h...
And this has issues in i18n.
If you only use one:
Or if you try this, both singular and multiple value fields, I can consider making the type to be configurable.
Then setting this to be an item (i.e. to show the title).
i.e. running this code once
Comment #5
Alan D. CreditAttribution: Alan D. commentedComment #6
mqannehI tested translation the label and it is working 100%.
can u re check the patch? I think it is important to have a dynamic field label instead of static one.
Comment #7
mqanneh+1