List(text) field not flagging as required when using check boxes / radio buttons

Created on 24 July 2017, almost 7 years ago
Updated 27 June 2024, 7 days ago

I'm not sure if this is an issue with the theme or with the underlying Drupal core code.

On a new contact form I defined a List(text) field that has three possible values for the user to choose from. I also made it a required field.

On the Manage form display tab, when I choose the Select list widget, on the client side there is a red asterisk next to the field name, indicating that it is a required field. But if I instead choose Check boxes / radio buttons, the red asterisk is not shown. I can switch between widgets and it is consistent in that the indicator is shown for Select list but not for radio buttons.

Luckily, even though the red asterisk is not shown for radio buttons, under the covers Drupal knows it is a required field, and will warn me if nothing is chosen.

Feature request
Status

Fixed

Version

1.7

Component

Code

Created by

🇺🇸United States Rounder

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024