Hello all, I am using 2.39.1.2 version of DHIS2. I developed an app and now i am struck in executing an program rule.
In my app i have option where if one person takes all vaciination it automatically needs to check all indicidual vaccines option as yes, similarly if i uncheck all vaccines taken it should uncheck all the yes options but should not select no option.
all vaccines taken have only one option - YES
Individual vaccines have 2 options each - YES NO
I tried everything false, unchecked, “”, “‘’”, null, none, 0, !true, !false but nothing worked, everytime it is either selecting NO option or else remaining in YES option only.
the application you are developing, is it a web application or and android application? (I asked this because the post has the tag “android”).
If you are using the Capture app (or Tracker Capture app), then the problem is only related to the program rules. Please add more details about the PR formula if possible.
the application is both web and android application.
condition:
#{6_weeks_vaccines_given} == true
individual vaccines:
Assign value: “true” to field “EIR - bOPV 1”, “#{opv1current}”
similarly assigned values to other individual vaccines
By this it checks all individual vaccines when allvaccinesgiven is checked. Similarly I want that, if i uncheck all vaccines taken it should uncheck all the yes options but should not select no option.