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.
Am I doing something wrong or it doesn't work?
Same problem when trying the opposite:
"* is required when * is empty."
Thanks in advance.
Comments
Comment #1
ethan.han777 CreditAttribution: ethan.han777 commentedthe red '*' disappear in the form, but it's still required when submitted and error message returned 'the field is required'
Comment #2
kopeboy CreditAttribution: kopeboy commentedSame problem with stable release..
Tried both ways (tested on /admin/commerce/customer-profiles/types/billing/dependencies):
Visually, the required * is added, but no validation is present and I can go on creating an order without required fields for example..
Comment #3
kopeboy CreditAttribution: kopeboy commentedUps, definitely a duplicate of #1561272: Conditionally required fields are not required