Creating rules including difference of dates

Good morning dear all,
I have an issue because the hidden fiel is not hiden and the warning message appears all the time no matter if the rule is respected or not .
can i have help on that?
I have created 2 program rules with a condition of difference of date.
the idea is : children less than 15 years old should not have a field appearing and it should show a warning message.
below you will see how i wrote the condition:

d2:yearsBetween(A{EMR_Date_of_birth_mz},V{enrollment_date}) <= 15

A{EMR_Date_of_birth_mz} is the program rule variable for the tracker enty gate which has as type “age”

Check this out @Cleia How do I create program rule for Age value type?

1 Like