Array values as a choice for user

The source of a choice component must be a single column, with one option per row.
To transform what you have there you can use a technique commonly referred to as the “Miracle Method”. Essentially:

  • Create a Helper Table with enough rows in it to cover the maximum number of expected options in the array
  • Index the rows, starting at zero
  • Add your array to every row of the table (could be multiple ways to do this)
  • Use a Single Value column to take N from start of the array, where N is the Row Index. This will give you one array element per row.
  • Use a series of Query JSON or JavaScript columns to extract the data elements from the JSON string.
  • Stitch them back together using a template.
  • Use the template as the source of your Choice component.
1 Like