Trigger program rule at the end

Hi everyone,

I would like to know if there is any possibility to make a program rule that combines several data elements and trigger the program rule when the user clicks on the complete button in a program stage.

Use case:
In the image below, I have ten data elements in which data is not entered sequentially. i.e the user can enter data in any filed, but the sum of values entered must be less or equal to 25. Can you help me create a program rule to solve my problem.

All solutions are welcome

Hello
You can achieve it with below steps:

  1. Create a program rule variable for each data element.
  2. Create a program rule to assign value of from each data element to related program rule variable
  3. Create final program rule to evaluate (sum(all program rule variables) <= 25 and action to (warning on complete)
    Good Luck

Hi @LutfullahShifaa,

I didn’t understand step 2.

Could you please detail step 2 with examples?

Thanks

Hello @dmbantu
You can skip the second step. I was thinking to assign sum of all program rule variables into a new program rule Variable and then evaluate it. But its not necessary. You can achieve it ignoring the second step.

Let me know if its still not very clear

Hi @LutfullahShifaa,

I created just 4 data elements and tested it in sierra leone. it works

How can I change the display message into portuguese for non english speakers?

Thanks

1 Like

Congratulations for achieve the result.
Its static text so you can just write in in Portuguese and if you want the message to be in both, write one line in Portuguese and one line in English.