Needing Help in setting up Program rules

Hello and good afternoon all,
I have fully customized and configured the forms onto the DHIS2 instance here in PNG. However, I am a little bit confused about setting the program rules.
The questions on the instance that I have a for a simple Yes and No answer.
An example of a question is: “Have you had sex for the last 6 months?” If the answer is No than the next question should be skipped. How should I create the program rule for that??

2 Likes

Hi @Benjamin_Haindapa ,

You can do it with a “Hide field” program rule.

  1. Create a Program Rule Variable for the Yes/No question (“Have you had sex for the last 6 months?”).

  2. Create a Program Rule:
    • Condition: #{yourYesNoPrv} == false
    • Action: “Hide field” and select the next question to hide.

1 Like

Thank you so much Mikhailo. This is very helpful. I will try it and will confirm once I am successful. Really appreciate the help here.

1 Like