- Getting Started
- Before You Begin
- How To
- Notifications
- Using VB Expressions
- Designing your App
- Events and Rules
- Rule: If-Then-Else
- Rule: Open a Page
- Rule: Open URL
- Rule: Close Pop-Over/Bottom Sheet
- Rule: Show Message
- Rule: Show/Hide Spinner
- Rule: Set Value
- Rule: Start Process
- Rule: Reset Values
- Rule: Upload File to Storage Bucket
- Rule: Download File From Storage Bucket
- Rule: Create Entity Record
- Rule: Update Entity Record
- Rule: Delete Entity Record
- Rule: Add to Queue
- Rule: Trigger workflow
- Leveraging RPA in your App
- Leveraging Entities in Your App
- Leveraging Queues in Your App
- Application Lifecycle Management (ALM)
- Basic Troubleshooting Guide
Using Choice Set
A choice set is a type of a Data Service field, used to store an enumerated list of selectable items.
You can use a choice set to select an expense type, a forum post category, or a certain edition of a recurring event.
You can bind choice sets to the following controls:
- Dropdown
- Multiselect dropdown
- List
-
Radio Button
Binding choice sets to a list source returns the options in that choice set.
Binding choice sets to a selected item binds the field value of that selected item.
When bounding to a selected item, it will bind the field value to that selected item.
Make sure:
-
the entity with choice sets is imported in your app.
-
you have the proper permissions from Data Service.
This example uses an entity called Fauna that has the following fields:
- Animals - type Choice Set, multiple selection not allowed
- Continent - type Choice Set, multiple selection allowed
- Endangered - type Choice Set, multiple selection not allowed
- In your app, add the Fauna entity.
You must include at least one entity to use the
GetChoiceSet()
function. - Add a Dropdown control and configure it as follows:
- In the List Source field, reference the Animals choice set:
GetChoiceSet("Animals")
GetChoiceSet("Animals") - In the Column field, write "DisplayName". This displays the display name of the choice set as an option in your control.
- In the List Source field, reference the Animals choice set:
-
Add a Multiselect dropdown control and configure it as follows:
- In the List Source field, reference the Continent choice set:
GetChoiceSet("Continent")
GetChoiceSet("Continent") - In the Column field, write "DisplayName". This displays the display name of the choice set as an option in your control.
- In the List Source field, reference the Continent choice set:
-
Add a Radio Button control and configure it as follows:
-
In the List Source field, reference the Endangered choice set:
GetChoiceSet("Endangered")
GetChoiceSet("Endangered") - In the Column field, write "DisplayName". This displays the display name of the choice set as an option in your control.
-