Hello,
I'd like to set the min/max values of consecutive numeric questions dynamically. The questions are on separate pages.
Question order: A, B, C, D
The logic is: C > B > A > D
Range settings (min, max):
A: 0, 1 000 000
B: [% A + 1 %], 1 000 000
C: [% B + 1 %], 1 000 000
D: 0, [% A - 1 %]
Now the tricky part is that each question has a "Don't Know" option. In case the don't know option is chosen, I want to set the next larger/lower value as the limit.
For example: If a respondent says "Don't know" for B but enters a value for A, I want to set the lower limit for C to [% A + 1 %] instead of [% B + 1 %]
--> max( [% A + 1 %], [% B + 1 %]).
In other words, how can I get multiple previous numeric answers into an array and return the maximum or minimum?