Better field descriptions are working on assorted text field types, but are not overriding those on image upload fields.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | bfd-2953817-image-fields-5.patch | 1.17 KB | yogeshmpawar |
| #3 | bfd-2953817-image-fields-3.patch | 2.16 KB | dysproseum |
| #2 | bfd-2953817-image-fields-2.patch | 609 bytes | dysproseum |
Comments
Comment #2
dysproseum commentedLooked into the matching going on in
better_field_descriptions_field_widget_form_alterand saw that the labels and descriptions are added as expected when they're set directly on the$elementand not its prefix or suffix.Added an element type check to set these properties explicitly.
Comment #3
dysproseum commentedCreated a new "position" setting called "Override" that will handle replacing the label and descriptions for all field types, without the need to render the output to append beneath the field.
Comment #4
yogeshmpawarComment #5
yogeshmpawarCreated a new patch which solves this issue. For image fields '#prefix' & '#suffix' will not work so for these we have to use '#field_prefix' & '#field_suffix' instead of this for more information please refer this link.
Comment #7
yogeshmpawarCommitted & Pushed to 8.x-1.x branch.
I have manually tested this patch & working as expected, solves the issue with the image field.