OR operator failing

Hi everyone,

The OR operator is not working. The image shows one repeatable stage with two data elements. I want to unhide/show data element How many attended if the type of training is either Capacity building 2 or Capacity building 4.

Image before application of program rule:

Application of program rule
Program rule expression:

Result
After clearing the browser and testing, the PR is not working. The data element is hidden for whatever option is selected.

Thanks

@hernandezmachava

This prule is always firing because it is true that the value is != Capacity building 2 OR != Capacity building 4. For these negations, you actually want to use “&&”, because you would to hide the field only if both Capacity building 2 and Capacity building 4 are not entered.

Try switching the || to && and see if it functions the way you are hoping!

1 Like