The autosubmit
tag provides a way to enable or disable whether responses for single-select (radio) questions and tables are submitted automatically when a response is clicked.
Disabling for a single question
1. How often do you typically drink coffee?
type: radio
autosubmit: n
1. Never
2. Occasionally (1-3 times/week)
3. Frequently (4-6 times/week)
4. Daily
5. Multiple times a day
Disabling for all radio questions
set defaults
autosubmit: n
If autosubmitting is disabled, respondents must submit their radio selections manually by clicking the continue button.
Details
- The
autosubmit
tag can be set to 'y' (enabled) or 'n' (disabled). - To enable or disable autosubmitting for all radio questions and tables, include the
autosubmit
tag on aset defaults
widget as shown above. - To enable or disable autosubmitting for all radio questions and tables in a group, include the
autosubmit
tag on astart group
widget. - Mobile-friendly themes such as Flex, Modern, and Device Diverse autosubmit radio selections by default.
Note: "Classic" themes require alternate methods for enabling or disabling autosubmitting of radio questions in a group or for a full survey.
- To enable or disable autosubmitting for all radio questions and tables, include the
autosubmit
parameter with thepage_template_data
tag on aset defaults
widget (e.g.,page_template_data: {autosubmit => 0}
). An input of '0' disables autosubmitting, while an input of '1' enables it. - To enable or disable autosubmitting for radio questions and tables in a group, use the
autosubmit
parameter with thetemplate_data
tag (e.g.,template_data: {autosubmit => 0}
).
Additional examples
The following examples demonstrate how to use the autosubmit
parameter in "classic" themes.
Disabling autosubmitting for all radio questions
To disable autosubmitting for all radio questions and tables in a survey, add page_template_data: {autosubmit => 0}
to the set defaults
widget.
set defaults
page_template_data: {autosubmit => 0}
Disabling autosubmitting for all radio questions in a group
To disable autosubmitting for all radio questions and tables in a group, include template_data: {autosubmit => 0}
on the start group
widget.
1. How often do you typically drink coffee?
type: radio
1. Never
2. Occasionally (1-3 times/week)
3. Frequently (4-6 times/week)
4. Daily
5. Multiple times a day
startgroup: NO_CAFFEINE
condition: anyChecked($Q1,1)
template_data: {autosubmit => 0}
2. Were you ever a coffee drinker?
type: radio
1. Never
2. Occasionally
3. Frequently
3. Have you ever experienced the following side effects from caffeinated drinks?
type: radio table
1. Yes
2. No
3. Unsure
rows:
1. Headaches
2. Dizziness
3. Anxiety
4. Increased blood pressure
endgroup: NO_CAFFEINE
Comments
0 comments
Please sign in to leave a comment.