Have an idea?

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

How can we pause survey

Dear All,

I have created a offline survey. I want to set a limit time of starting and ending survey. I mean that all device can start survey from 6:00 am to 5:00pm. After this time will pause survey and show message.

Is it possible? If yes, please give the detail how to do.
asked Mar 2 by Saroeun Bronze (1,710 points)
This isn't an ideal answer but consider it a plan B until Sawtooth Software or another forum member provides a more suitable solution.

You can manually open and close the survey through the admin module under the "Close Survey" menu option and also insert an appropriate message indicating the survey being available during certain times.

1 Answer

+1 vote
 
Best answer
This skip logic can be used to skip respondents to a terminate page if they attempt to take the survey outside of the acceptable time range.

Begin Unverified Perl
my ($second, $minute, $hour, $day, $month, $year, $weekDay, $yearDay, $isDst) = gmtime(time);
my $closed = $hour <= 4 || $hour >= 16;
return $closed;
End Unverified


The times on line 3 can be updated.  Keep in mind that these times are GMT, so be sure to account for your timezone difference.
answered Mar 4 by Zachary Platinum Sawtooth Software, Inc. (124,300 points)
selected Mar 9 by Saroeun
...