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.
Hi,
I found that default option in attribute form rendering is ignored when attribute is required. I think default option should be selected regardless of attribute is required.
Small patch attached.
Comment | File | Size | Author |
---|---|---|---|
attribute_force_default_option.patch | 459 bytes | manuel.adan | |
Comments
Comment #1
rszrama CreditAttribution: rszrama commentedPlease refer to the documentation on the issue; this comes up fairly regularly, and the gist of it is all attributes with options are required, but in this case specific customer action is required. If we select the default, a customer can add to the cart without first checking and verifying the selection. That's the nature of the required field here.