The page_template_data
tag customizes the behavior of the continue and back buttons, including visibility and delay settings, for surveys using Flex, Modern, and Device Diverse (DD) themes.
set defaults
autoother placeholder: Specify
autoother size: 15
page_template_data: <<END
{
autosubmit => 0,
show_continue => 1,
}
END
In the example above, the programmer disabled the autosubmit feature and changed the settings to always show the continue button.
Details
- The
page_template_data
can be applied globally inset defaults
or locally at specific questions or groups. - The
page_template_data
tag uses Perl's hash reference syntax with parameters set via=>
and separated by commas. - The parameters can be placed in a single-line or in a multi-line format using heredoc, as shown above.
Parameters
The following parameters are available to customize navigation. Please note that some settings may override others.
Parameter | Values |
autosubmit |
0 – Off 1 (default) – Submits when all single-select questions and tables on the page are complete. The |
back_fade |
Time in milliseconds (ms) before the back button disappears, e.g., Defaults to 8,000 ms (8 seconds). Only applies if |
back_one_page |
0 – Navigate backwards freely. 1 (default) – Respondents are limited to the previous page seen. |
delay_continue |
Time in ms before the continue button appears, e.g., Disabled by default. The delay occurs only the first time the respondent visits the page. If |
|
0 – Off 1 (default) – Enables ripple effect when clicking on a radio or checkbox button. |
show_continue |
0 – Never show 1 – Always show (default for basic themes) 2 – Show the continue button only when all questions on the page are answered (default for DD/Modern/Flex themes). The |
show_back |
0 – Never show 1 – Always show 2 (default) – Fade out after established The Use with |
Note: If show_continue
is manually set to '0' (always hide) or '2' (fade in), delay_continue
will not work due to conflicting instructions. In the Device Diverse theme, show_continue
defaults to '2', but is ignored if delay_continue
is used.
Additional examples
Defining parameters in a single line
In this example, autosubmit
is disabled using the tag, the back button is hidden, and the continue button is always shown.
setdefaults
autosubmit: n
page_template_data: { show_back => 0, show_continue => 1 }
Applying page_template_data on a question
The MaxDiff question below uses the page_template_data
to turn off the autosubmit feature.
20A. Of the messages listed below, which message is the most and which message is the least motivating to you?
instruct: Please select one response per column
type: maxdiff
page_template_data: { autosubmit => 0 }
mode: classic
randomize: n
setorder: [*]
table heading: Message $maxdiff_task of $maxdiff_task_count
design from: m096263pan.mddesign_a
best: MOST MOTIVATING
worst: LEAST MOTIVATING
statements from: MAXDIFF_LIST_A
Tip! Parameters help pass data to survey theme templates. Additional parameters for the page_template_data
tag may be available beyond those listed here. For additional assistance, contact Support or send an email to help@intellisurvey.com.
Comments
0 comments
Please sign in to leave a comment.