Add dynamically required constraint

Hi!

How can I add dynamically required constraint depending on execution variable? I would like to have form field with required constraint set to true or to false depending on the value of execution variable.

<camunda:constraint name=“required” config="${personExists}" />

Required is always set to to true. Also I tried to add property and manually map it in my Java code but value of property is always evaluated as String "${personExists}.

Is there a way to add property with value of execution variable or to dynamically set required constraint? I know I can achieve it with html forms but I am trying to avoid that.

Hi @ZoeJane,

You could try to implement your own custom validators 1.

Why you want to avoid to use embedded forms?

Cheers,
Roman