To return the IDs of the selected choice values of a given multiple-choice field
With this function, you'll get the IDs of the selected options.
- Multiple-choice field: You get the choice IDs
- Dynamic multiple-choice field: You get the record IDs
We have a multiple-choice field Favorite sports with the following choice values:
Basketball, Dancing, Sailing, and Soccer are selected.
numbers(myMultiChoice)To return the internal IDs of the selected choice values of a given multiple choice field.
numbers(myDynMultiChoice)To return the record IDs of the selected choice values of a given dynamic multiple choice field.
In this example, Favorite sports is a dynamic choice field that refers to the Sports table.
You can change dynamically table views based on the selection of your dynamic choice field.
The following script is to be added to the formula field of the table view.
let dChoiceIds := numbers('My Dynamic Multi Choice');
for employee in select Employees do
for id in dChoiceIds do
if id = number(rec.Id) then employee end
Result: You see the records of the employees in the table view that are selected in the dynamic multiple choice field.