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

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