This rule works on mobile and hides the program stage when the TEI is completed, shows when it’s not (expected behavior). But when I check the console on Web Capture, it gives me the following errors:
Hey @Pablo. So your solution definitely works on Mobile but I’m getting these errors when I check the console on Web:
angular.js:11655 Expression V{enrollment_status} == ‘COMPLETED’ contains variable enrollment_status - but this variable is not defined.
Expression with id rule:nq6vTMd6H88 could not be run. Original condition was: V{enrollment_status} == ‘COMPLETED’ - Evaluation ended up as:V{enrollment_status} == ‘COMPLETED’ - error message:SyntaxError: Unexpected token ‘{’
Do you know why I would get these errors? Please screenshots of my program rule attached.
@Clara please would you like to create a feature request to support the expression V{enrollment_status} in web. I will make sure to triage it! jira.dhis2.org