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.
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.
Comment | File | Size | Author |
---|---|---|---|
#2 | Screen Shot 2017-02-17 at 11.17.03 AM.png | 38.2 KB | jrockowitz |
Comments
Comment #2
jrockowitz CreditAttribution: jrockowitz as a volunteer and at The Big Blue House commentedWhen 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?
Comment #3
rolfmeijer CreditAttribution: rolfmeijer at Dutch Open Projects commentedThanks 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.