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.
I use this field in profile2 profile. When I set it as "required" the default value is "- Select -". When I set it to not required, the default value becomes "- Select a value -". I am not sure if this is correct behavior. On the normal select widget the default value in both cases is "- Select a value -".
Comments
Comment #1
legolasboThis issue is a duplicate of #1895154: Sort "Other" to top of list
Comment #2
Channel Islander CreditAttribution: Channel Islander commentedBoth this and its duplicate were closed as duplicates! (And this is not really a duplicate of the other issue, anyway).
Reopening because the OP's question has not been answered.
Comment #3
legolasboI accidentally closed it agains the wrong issue, but it is a duplicate. #1830090: Align with Drupal core select list, NULL (-None-) value. has a patch for review which aligns the options with Drupal core.
You are correct that the drupal list module uses
- Select a value -
, but Drupal core uses- Select -
and I think It's a pretty sensible default.code below is from form.inc
Comment #4
Channel Islander CreditAttribution: Channel Islander commentedThanks!