Scroll

Ignore Responses in the Next Iteration(s) if chosen in the Previous Iteration

Follow
Summary Article on how to ignore responses in the next iteration(s) if chosen in the previous iteration(s)
Applies to Askia Design
Written for Script Writers ; Developers
Keywords loop ; loops ; ignore ; responses ; ignore responses ; grids ; iteration ; iterations

  

Example QEX (located at the bottom of this article) can be downloaded here.


If you'd like to hide certain responses in the next iteration(s) that were selected at the previous iteration(s): 

First: 

Create a standard question table loop:

Second: 

Create an "Ignore Response" Routing that looks like this:

Use this code in the Ignore Response Script window:

FORSET("i",CI(1)-1,??Q1??[i])

ALTERNATIVELY: you could also use "Q1.AllValues" as the Ignore Responses script.
It does the same thing as the above FORSET script, but it's more compact. See below image:

Third: 

Change your Loop from a "Response Block - Vertical Loop" to a "Styles - Classic Responses":

So it looks like this when done:

Conclusion:

If everyone is setup correctly, the loop should behave like what's shown in the below gif:

When I choose "Item 1" at "Brand A", it doesn't appear at "Brand B". When I choose "Item 4" at "Brand B", it doesn't appear at "Brand C", etc. The previous iterations selected response is now hidden.

Have more questions? Submit a request

Comments