What is autocomplete?
Autocomplete is a convenient way to predict the rest of a query a user is typing and suggest options for inserting the correct query.
Where can I use autocomplete?
Autocomplete can be used for referencing variables and writing up conditions.
Variables
Autocomplete for variables are supported throughout the Studio including Paragraphs and questions in the FORM block and rich text editors. However, autocomplete of variables in rich style document templates is not supported. Instead, you can use the Checkbox Word Add-in to connect your App and insert the variable you wish to reference in your document.
Conditions
Supported areas for autocomplete of conditions include:
- FORM field conditions
- Routes
- FILTER block condition field
- LOOP block break condition field
- LOOP block output set condition fields
- MERGE block output set condition fields
- Email Builders in EMAIL, WORKFLOW, PARALLEL blocks
Note: Users can still write out their condition expressions manually and won't have to always rely on autocomplete. Users are still prone to creating errors even with autocomplete, especially if they are writing variable to variable condition expressions.
Autocomplete Condition Pathways for each Variable Type
Variable Type | Operator Options | Value Options |
TXT, PARA, LOOP |
|
|
NUM, SLIDR |
|
No options shown - User will be required to enter a value manually |
RAD, SEL (dropdown) |
|
The options added to the radio buttons or dropdown in the condition expression will be shown as values to insert |
CBX |
|
|
ACT (YN Block) |
|
|
Note: Autocomplete for conditions allows users who are unfamiliar with the condition syntax to write conditions more easily and also help users create condition expressions faster. However, users are still prone to creating errors, especially if they are writing variable to variable condition expressions.
How to trigger autocomplete for variables
- In a supported area of the autocomplete of variables, type "{{" and continue typing a variable name to filter down the query suggestion options
- Select a suggested variable to insert the variable that will be automatically wrapped in double curly brackets
Note: You can also press "tab" on your keyboard instead of clicking to select a variable suggestion option.
How to trigger autocomplete for conditions
- Click onto a supported area of the autocomplete of conditions and view query suggestions
Notes:
- Not all variables will be shown. To filter down on suggested variables, follow step 2 below.
- The autocomplete will still be triggered even if the condition begins with brackets
- Start typing a variable name after to filter down the query suggestion options
- Select a suggested variable to insert
Note: You can also press "tab" on your keyboard instead of clicking to select a variable suggestion option. - Enter a space to trigger the autocomplete to show operator suggestions
Note: The operator suggestions shown will match the variable type of the variable inserted/typed before hand. E.g. For Number variables, it will show Greater Than, Greater Than or Equal To, Less Than etc. See screenshot below. This behaviour will not be affected even if the variable name is customised. - Select a suggested operator to insert
Note: You can also press "tab" on your keyboard instead of clicking to select a variable suggestion option. - Enter a space to trigger the autocomplete to show the value suggestions. See the list of value suggestions available for each variable type above
- Select a suggested value to insert
- [Optional] Enter a space to trigger the autocomplete to show the "AND" and "OR" suggestions to create complex conditions
- Repeat steps 1-8 to continue writing complex conditions