The autopage
tag determines if a page break will be automatically inserted before the question it is applied to. ap
is the alias of autopage
— the two can be used interchangeably.
In r8.0+, the default setting is autopage: y
. Each question will include a page break unless specified by the Survey Programmer. This greatly reduces the need for newpage
throughout the survey code.
Tip! autopage
may be added to setdefaults
to apply the tag to every question in the survey. The tag can also be added to a start group
widget to apply the tag to every question inside that group only.
Syntax
The autopage
tag accepts two inputs: 'y' and 'n'. Use ap: n
to prevent a page break from being inserted before the question.
# Do not insert a page break before the question 1. Question here type: text ap: n # Automatically insert a page break before the question 2. Question here type: text ap: y
Example
The following example uses the ap: n
tag on Q2 to ensure it is shown on the same page as Q1.
Note: The autopage
tag is overridden by inline blocks. The contents of an inline block will always be included on one survey page.
Comments
0 comments
Please sign in to leave a comment.