Configure default values in input nodes to present end users with pre-selected or pre-filled responses while they are completing a module. End users can confirm the default value or replace it with their preferred input.
Configure default values in input nodes
Default values are available in all types of input nodes, with the exception of File Upload and Content Only nodes. In Multi-input nodes, you configure default values for each of its individual inputs.
To configure a default value, follow these steps:
- In your input node, scroll past the content field to the input node’s options and toggle on Default value.
- In the input field, specify a value or set the appropriate variable as decribed below. The available options differ depending on the input node type.
Default values in Single and Multiple Select nodes
In Single and Multiple Select input nodes, you have the following options available:
- Choose from the options you have configured for this input node.
- Choose from the available variables in your module, including those from other nodes, databases, collections, and data sources. If an option matching the value of the selected variable is identified, it will be presented to end users as pre-selected.
- Select a built-in value as your default value.
Additional options are available in Multiple Select input nodes:
- To configure additional default values, click on the Add default value button.
- To configure values from collections as default values, click on the link icon and select a collection field. Answer options associated with items in the collection that are selected as default values will be automatically pre-selected.
Note that a Multiple Select node generates a single variable, no matter how many options have been selected by the end user. Therefore, its value will be displayed as a comma-separeted list, e.g., when referencing the input’s variable or writing it into a database.
Default values in Text, Email Address, Number and Date nodes
In Text, Email Address, Number and Date input nodes, you have the following options available:
- Enter your preferred value by typing or pasting text into the input field. This text will be displayed to end users in the same way.
- Type @ to reference the variable whose value you want to present to end users.
- Choose from the available variables in your module, including those from other nodes, databases, collections, and data sources. The value of the selected variable will be presented to end users.
Access additional transform options to specify how you want the variable’s value to display by clicking on the referenced variable. For example, when referencing a collection field you can present a a comma-separated list or the numeric value indicating the number of items in the collection, see transformed collection fields.- Select a built-in value as your default values.
Occasionally asked questions
If you have written values from a Multiple Select input nodes into your database, BRYTER will not be able to match the default values using this method. This goes back to Multiple Select inputs creating one variable with one value displayed as a comma-separated list.
In other words, if your answer options are A, B, C, and D, and your end user chooses A and C, the Multiple Select input node creates one variable with the value A, C – rather than two values, A and C.
When referencing variables as default values, only exact matches can be pre-selected, A, C – not A and C.