I have two fields ZZZEligible and ZZZVaccinationDate
I am trying to make a constraint on ZZZVaccinationDate to be required only if ZZZEligible is checked.
Persistent Fields
ZZZVaccinationDate is Date
ZZZEligible is Boolean
Condition field:
Conditions
ZZZCondition
when (not ZZZEligible
or (ZZZEligible
and ZZZVaccinationDate entered))
In the form I am trying to add the fields like
ZZZEligible
ZZZVaccinationDate
constraint (ZZZCondition)
What am i doing wrong here . the constraint doesnt seem to work.
trying to create the condition like
if (ZZZEligible)
return ZZZVaccinationDate entered
else
return true
throws an error not sure why