Provide *default answers to questions
Giving users a little boost in answering a question, or allowing them to revise a previous answer, is now possible with *default.
You use *default when you want to pre-populate a question text box with an answer. Or, when you want other question types to have pre-selected answers.
Text and paragraph questions
When a text box is clicked by your users, your default text won’t disappear (it’s not hint text), but rather your users can submit the answer as-is immediately by clicking submit or edit the text before submitting.
Here’s how the code might look:
And here’s how the above code would look to the user:
Checkbox questions
To use default with a checkbox question, just add all the options you want selected to a collection.
Here’s how the above code would look:
Multiple choice questions
To give a default answer to a multiple choice question, just write the exact text to the one answer you want preselected.
For example:
Here’s how this would look:
Variables
You can also use variables with *default, like so:
|