Describe your issue or idea
This is a follow-up to https://github.com/backdrop/backdrop-issues/issues/317#issuecomment-3904... from @quicksketch:
I certainly don't want a label on images most of the time, or on the fields @JayaJayanth listed above, but if I have a bunch of arbitrary (short) textfields, I need the label to tell the difference between them.
My suggestion here would be to:
- Allow each field type to provide a default in hook_field_info() as
default_label_display
.- Specify
<hidden>
as the default for long texts, images, and list fields.- Any field that does not provide a
default_label_display
should use inline.If we later wanted to provide a
default_label_form option
, that could apply to the add/edit forms instead of on display, but we don't have label settings on those forms currently.
Recent comments
The photo you posted seems like the shopping cart content. Is the image showing when you actually see the product before you add it to the cart?
ubercart shopping cart image missing
Or better yet, navigate to admin/config/content/webform and modify the Allowed HTML tags in labels text field under Advanced options.
How to add markup to webform field descriptions
I haven't tried this, but I believe you can add allowed html tags by editing the file webform.settings.json located inside your active config folder (e.g. in files/config_XXX/active and modifying the...
How to add markup to webform field descriptions