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

ethan.han777’s picture

the red '*' disappear in the form, but it's still required when submitted and error message returned 'the field is required'

kopeboy’s picture

Issue summary:View changes

Same problem with stable release..

Tried both ways (tested on /admin/commerce/customer-profiles/types/billing/dependencies):

  • field settings to required and make it optional based on a radio input value of another field
  • field settings not required and make it required basec on radio input value (opposite) of another field

Visually, the required * is added, but no validation is present and I can go on creating an order without required fields for example..

kopeboy’s picture

Status:Active» Closed (duplicate)