Hello,
I am trying to save a set of specific values from a repeat in order to do some validation.
To simplify here is what I want to do :
Repeat 1 :
- Question 1 = ph
- Question 2 = 7
- Question 3 = 20
Repeat 2 :
- Question 1 = orp
- Question 2 = 124
- Question 3 = 5
Repeat 3 :
- Question 1 = ph
- Question 2 = 4
- Question 3 = 15
Outside of the repeat I want to store the Q3 value in one variable (call it store_ph_7) if Q1 = ph and Q2 = 7 and in another variable (call it store_ph_4) store the Q3 value for Q1 = ph and Q2 = 4
Then I have a note popping up if X - Y > 1
Is there a way to do this? Repeats will never be in the same order and the actual form have way more options so I can't rely on counts or indexes.
I based my structure on the assumption that I could store any value from the repeat using a set of relevant rules but apparently it doesn't work that way. I tried using once() but that didn't work either.
Anyone has a clever trick to do this?