Create dynamic dropdowns with values that change based on conditions
Create a Equation Widget
Structure Data as a Matrix
[[A,a], [B,b], [C,c]]
Create the Dynamic Widget
Link Data Source
Select Default Value
Use matrixSubset
matrixSubset
to select the first value from the matrix created in the equation widgetExample: matrixSubset(t_avail, 0, 0)
selects the first elementt_avail
matrix to be the default value.
Thorough Testing
Hide Equation Widget
Make Adjustments
matrixSubset
authorNotes
for future developersmatrixSubset(matrix, row, col)
- Extract specific valuesmatrixLength(matrix)
- Get number of rowsmatrixColumn(matrix, col)
- Extract entire columnmatrixRow(matrix, row)
- Extract entire row