Have an idea?

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

Troubles with PageTime skip logic

In order to disqualify speeders I set the following script in skip logic (Version 9.6.1):


It the logic is true, respondents are redirected to the disqualifying panel link at the end of the survey.
It worked during the testing but now that the survey is online the skip logic is not working properly. Some speeders do still complete the survey.

What can I do? Thanks for any help
asked Feb 5, 2019 by Valerie

1 Answer

0 votes
Perhaps something isn't working right with the PageTime function.  If that was the case, we may be able to get around it by manually adding up page times using unverified Perl.

Begin Unverified Perl
my $sum = 0;
for (my $page = 1; $page <= 20; $page++) {
    $sum += GETVALUE('sys_pagetime_' . $page);
return $sum < 240;
End Unverified

Please try this and tell me if it resolves the problem.
answered Feb 5, 2019 by Zachary Platinum Sawtooth Software, Inc. (143,625 points)
Thanks Zachary. I am afraid I am quite a beginner with the use of unverified Perl. Where shall I add it? as a Skip logic or somewhere else?

many thanks
Anywhere you had your PageTime code, you can replace it with this.
Pagetime VS specific code