When I set a condition to make a field required (under conditional logic), the required field gets the “required” attribute, but misses the asterisk to indicate it is required. A regular required field gets an abbr-tag as a child of the label, but conditional fields don’t.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

rolfmeijer created an issue. See original summary.

jrockowitz’s picture

Status: Active » Postponed (maintainer needs more info)
FileSize
38.2 KB

When I go to the Example: Elements: Condition Logic (/form/example-elements-states) using the Bartik theme, the asterisk is displaying for conditionally required elements.

Can you please document where the asterisk is missing? Is it a theme? an element type?

rolfmeijer’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)

Thanks for your answer. I now see that f.i. Bartik solves this completely different (not using an abbr-tag, but with CSS only). Because of that it is done the same way for regular required and conditional required fields. Apparently this needs to be / can be solved in the theme layer.