Skip to content

Show a page for a minimum of 2 minutes

Ruben C. Arslan edited this page Jul 31, 2019 · 2 revisions

Sometimes you want to show participants feedback. Usually, people would use a Stop button for this and end their study at the feedback, so that participants can return to the feedback later.

However, sometimes you may want to continue the study after showing a full-page feedback (maybe the feedback is an intervention and you would like to measure its effects).

You can put the feedback inside a survey, but you can also use a Pause to make sure people view the feedback for at least two minutes (for example). Below, you can find out how.

By default, the user would stay on the pause page until they reload the page (after two minutes have passed). You may want to make this easier for them by showing them a "continue" button once two minutes are over. The following pause does just that.

{
    "units": [
        {
            "type": "Pause",
            "description": "",
            "position": 10,
            "special": "",
            "wait_until_time": "",
            "wait_until_date": "",
            "wait_minutes": 2,
            "relative_to": "",
            "body": "Wait 2 minutes.\r\n\r\n<a id=\"go_on_button\" style=\"visibility:hidden;\" class=\"btn\" href=\"\/\">Go on<\/a>\r\n\r\n<script>\r\nwindow.setTimeout(function() {\r\n    $(\"#go_on_button\").css(\"visibility\", \"visible\");\r\n},  2 * 60 * 1000);\r\n<\/script>"
        }
    ]
}

Or maybe you want to continue automatically after two minutes? You can do so using the following snippet:

{
    "name": "pauselink",
    "units": [
        {
            "type": "Pause",
            "description": "",
            "position": 30,
            "special": "",
            "wait_until_time": "",
            "wait_until_date": "",
            "wait_minutes": "",
            "relative_to": 2,
            "body": "Wait 2 minutes.\r\n\r\n<script>\r\nwindow.setTimeout(function() {\r\n    location.reload();\r\n},  2 * 60 * 1000);\r\n<\/script>"
        }
    ]
}