Have an idea?

Visit Sawtooth Software Feedback to share your ideas on how we can improve our products.

How to randomise the block of 10 questions?

For example, we have the following scenario

Q1
Q2
Q3 --(Task1/3)
<---Page break-->
Q4
Q5
Q6 --(Task2/3)
<---Page break--->
Q7
Q8
Q9 --(Task3/3)
<---Page break---->
so on...

All these bunch of questions are set to randomise using Pages in sawtooth.

I would like to print Task 1/3, Task 2/3, Task 3/3 on each page footer as they appear. There is no loop, so it is not possible to implement dynamically.

Is there any possible way to code dynamically using randomise?
If not then can we setup custom randomisation and assign page number accordingly.


Please suggest any possible solution...…
asked Dec 7, 2021 by nishit.ramoliya (145 points)

1 Answer

0 votes
You could probably set up some Perl and use Answered(Q1) + Answered(Q4) + Answered(Q7) +1.  The Answered functions will return a 1 when used inside an Unverified Perl block, so that on the first page it should say (0+0+0+1) / 3, and then change one of the zeroes to a 1 after the first page is submitted, etc.
answered Dec 7, 2021 by Brian McEwan Platinum Sawtooth Software, Inc. (56,675 points)
Thank you Brian McEwan, this logic is perfect and working.
...