Referencing other fields in your form questions can be a powerful feature in your form to add context for the fieldworker who will be capturing the responses, or to drive skip logic, calculations and validations.
In each of these places, fields are referenced by the dollar character ('$') followed by the field name, e.g. $textfield_1.
Referencing fields in display text
- Find the name of the field you want to reference.
- In your field display text type '$' to bring up a list of all available fields in your form. Either scroll through the list to find the field name you are looking for, or just start typing and then press 'Tab' on your keyboard to autocomplete.
- Press 'Enter' or click outside of the display input box once you have entered your text.
- The field reference will be highlighted to show that it is different from the text around it.
- When completing the form on the device, the display text will update dynamically with the referenced field value as soon as it is populated.
Referencing fields in skip logic and validation rules
Referencing fields in calculations and expressions
Field values can also be referenced within more complex expressions, either as arguments for functions (as in the example below) or combined with operators.
Using the legacy form designer? Have a look at our article on Identifying a field in the legacy form designer.