Objective
After reading this article, you will understand how to show and hide questions and content within a form.
Before you get started
This article might be helpful before you read further:
Use conditional display logic to show and hide information on a form. This feature can be very helpful for creating a guided experience rather than a static form for users.
Conditional Display Logic can be set up in the Template Builder when adding elements to the form template. When adding a question, you can determine when that question will be made visible to the end user.
Use the following steps to set up display logic:
- Add a question, free text, or image to the canvas.
- Select the Display Logic tab in the question editor.
- Choose Conditional Visibility.
- Define the criteria in which this element should be shown. For picklists, this includes selecting which picklist options should control the display logic. Similarly, if the controlling question is a numerical question, use comparison operators (i.e. greater than, less than, etc.) to control the visibility of the question. For a full list of criteria that can be used, by question type, see the table below.
- If applicable, add multiple rows of criteria to create additional complexity around when elements are shown. Use the Filter Logic line to specify AND/OR logic for each of these lines of criteria.
Display Logic By Question Type
Youreka Question Type | Can Be A Parent | Parent Operator Options | Can Be A Child Of |
---|---|---|---|
Attachment/Photo | No | Checkbox List, Currency, Field Link*, Multi-select Picklist, Number, Percent, Picklist, Radio Button List, Text, Yes/No | |
Checkbox List | Yes | - Contains | Checkbox List, Currency, Field Link*, Multi-select Picklist, Number, Percent, Picklist, Radio Button List, Text, Yes/No |
Currency | Yes | - Less - Less or equal to - Greater than - Greater or equal to - Equal to - Not equal to - Blank - Not blank |
Checkbox List, Currency, Field Link*, Multi-select Picklist, Number, Percent, Picklist, Radio Button List, Text, Yes/No |
Date | No | Checkbox List, Currency, Field Link*, Multi-select Picklist, Number, Percent, Picklist, Radio Button List, Text, Yes/No | |
Date/Time | No | Checkbox List, Currency, Field Link*, Multi-select Picklist, Number, Percent, Picklist, Radio Button List, Text, Yes/No | |
E-Signature | No | Checkbox List, Currency, Field Link*, Multi-select Picklist, Number, Percent, Picklist, Radio Button List, Text, Yes/No | |
No | Checkbox List, Currency, Field Link*, Multi-select Picklist, Number, Percent, Picklist, Radio Button List, Text, Yes/No | ||
Field Link* | Yes | This depends on the type of Saleforce field being referenced. | Checkbox List, Currency, Field Link*, Multi-select Picklist, Number, Percent, Picklist, Radio Button List, Text, Yes/No |
Long Text | No | Checkbox List, Currency, Field Link*, Multi-select Picklist, Number, Percent, Picklist, Radio Button List, Text, Yes/No | |
Multi-select Picklist | Yes | - Contains | Checkbox List, Currency, Field Link*, Multi-select Picklist, Number, Percent, Picklist, Radio Button List, Text, Yes/No |
Number | Yes | - Less - Less or equal to - Greater than - Greater or equal to - Equal to - Not equal to - Blank - Not blank |
Checkbox List, Currency, Field Link*, Multi-select Picklist, Number, Percent, Picklist, Radio Button List, Text, Yes/No |
Percent | Yes | - Less - Less or equal to - Greater than - Greater or equal to - Equal to - Not equal to - Blank - Not blank |
Checkbox List, Currency, Field Link*, Multi-select Picklist, Number, Percent, Picklist, Radio Button List, Text, Yes/No |
Picklist | Yes | - Equals | Checkbox List, Currency, Field Link*, Multi-select Picklist, Number, Percent, Picklist, Radio Button List, Text, Yes/No |
Radio Button List | Yes | - Equals | Checkbox List, Currency, Field Link*, Multi-select Picklist, Number, Percent, Picklist, Radio Button List, Text, Yes/No |
Text | Yes | - Equal to - Not equal to - Blank - Not blank - Equal to question - Not equal to question |
Checkbox List, Currency, Field Link*, Multi-select Picklist, Number, Percent, Picklist, Radio Button List, Text, Yes/No |
URL | No | Checkbox List, Currency, Field Link*, Multi-select Picklist, Number, Percent, Picklist, Radio Button List, Text, Yes/No | |
Yes/No | Yes | - Equals | Checkbox List, Currency, Field Link*, Multi-select Picklist, Number, Percent, Picklist, Radio Button List, Text, Yes/No |
*Field Links have unique capabilities depending on the type of Salesforce field being linked to.
***Questions inside of Linked Sections cannot be a parent to a question outside of a linked section, regardless of their type
****Children may be controlled by multiple parents and their logic can include a series of AND/OR statements to achieve complex display logic.
*****Task sections can be conditionally displayed based on questions outside of the Task Section, including, Checkbox List, Currency, Field Link*, Multi-select Picklist, Number, Percent, Picklist, Radio Button List, Text, Yes/No question types.
Always Hidden
There are times when it makes sense to always hide a question from an end user. An example of this is when you would like for a set of questions to be displayed or not displayed, based on a pre-populated hidden question. In these situations, use the Always Hidden setting when designing your display logic to ensure that a question is never shown to an end user.
View Dependent Question Logic
You can click View Dependent Question Logic on the Form Template Detail page to see a diagram of all conditional display logic in a form template. Hover over question labels to see their full values.
Considerations for adding conditional display logic
- Controlling questions can be a number of different question types, including Checkbox List, Currency, Multi-select Picklist, Number, Percent, Picklist, Radio Button List or Yes/No.
- Elements that respond to conditional display logic include Question, Free Text, Image, and Task Section.
- An entire section (including the section name) can be hidden if all elements in the section have yet to meet the criteria for being shown.
- For long or complex templates, review the Conditional Display Logic Best Practices.
Comments
0 comments
Article is closed for comments.