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.
This doesn't work when the field widget's form element is a multi-valued select.
Not sure why yet...
Comments
Comment #1
joachim CreditAttribution: joachim commentedTurned out things were even worse with checkboxes.
Using #process just doesn't seem to be possible. Just setting a descending #process on a field form element turns a multi-valued select into a single-valued, for no reason I can determine. It causes checkboxes to vanish completely!
Hence I had to completely change the way this works.
Issue #1617956 by joachim: Fixed issues with multi-select and radio/checkbox widgets.