How to add conditional required validation to camunda-form from modeler

Hello ,

I have one enum(dropdown) field in the Camunda form with approve and reject options.
there’s another field rejectReason.
As per my requirement if i select the reject option then only rejectReason field’s required validation should be applied.

but currently after providing the config for the required validation it’s not working as expected.

Is there any workaround to achieve this type of conditional validations from the camunda modeler ?

PFA for BPMN example file.
camunda_form_fields_check_demo.bpmn (4.5 KB)

Thanks