Is it possible to make validation conditions relative to specific items in a list question?

Hello all,

I’m hoping to pipe responses from a list.

I have a list variable squares_id, with a value up to 8. What I would like to do is to have a validation condition apply to each item of the list, but based on its location.

So, there is a validation condition 1 that applies to the list response in location 1, etc.

Is this possible?

Dave Francis, it is possible.

But remember that Survey Solutions validates answers to QUESTIONS. List question is a single question and hence is validated ALL TOGETHER.

Your validation condition i could be something like:

(self.Length < i) || (self[ i - 1 ].Item2.Length >= i)

This example checks that the length of i-th item is at least i characters.

I can’t imagine what this would be needed for, though, as it can be generalized to a single check.

Best, Sergiy Radyakin