Use a Text answer type in a node to present a free-response option to the user. For instance, your users can submit one-line responses such as their name or multiple-line responses such as comments or explanations.
Example use cases
Your users can enter comments or explanations using the Text answer type. This is particularly useful for explaining a particular decision or providing you with further information so you can evaluate a legal case.
Input names or addresses
In a lot of cases the user needs to enter data about their company. A Text answer type allows the user to easily submit their name and company address. You can reference this information to generate a document later in your module.
[ 1 ] Optional input
Toggle this option if the response is not mandatory for the module.
[ 2 ] Placeholder text
Use this option to specify a placeholder text, such as "Name" or "Address" to give your user guidance on the type of information they need to submit.
[ 3 ] Default Value
If you toggle this option and enter something in the text field, the user will get a pre-filled text input. This is especially useful in combination with the Optional input.
[ 4 ] Character Limit
Enter the maximum number of characters your users can enter into the input field. Spaces are included in the character count.
[ 5 ] Allow line breaks
Decide if you want to allow the user to enter line breaks to provide long text inputs. This is particularly useful if you want the user to input paragraphs of text or supply an address.
[ 6 ] Custom validation with a regular expression
Create custom validations for the user input field to regulate the kind of data your user can input. For example, if you want your users to enter a contract number and all contract numbers for your company are standardized as two capital letters followed by a dash and three numerical digits (e.g. "XY-123"), you can create an expression that checks for this pattern as follows:
If you use this formula and the user enters a different text, they will receive an error message.
For more information, please go to the Regular Expressions tutorial.