I have a form that Users submit. One part of that form is a priority radio selection ranging from 1 - 10.
Within my Gallery I have a list of submitted forms that are able to be sorted via "Title" and "Created" (for date created). This works with the double arrow sort icon no issue. I get stuck when I try to do the same sort technique but with the "Priority" value based off of the radio button selections the User did when filling out the form.
How can I sort my gallery based off of the radio button value from the form?
Solved! Go to Solution.
Sorry for the delay!!
For the Priority, you will need to expose the value in a way that you can sort on it. You can't sort by a choice column directly.
So the formula for the Items property would be:
SortByColumns(
AddColumns('Approval List',
"_priority", Priority.Value
),
varSortColumn,
varSortDirection
)
Then change the formula on the priority sort icon to:
Set(varSortColumn, "_priority");
Set(varSortDirection, If(varSortDirection = Ascending, Descending, Ascending))
Awesome! That ended up working for me!
There is one bug with the sorting, when sorting the numbers sort (1, 10, 2, 3, 4...) where "10" is between "1" and "2" instead of after "9". Is there something I can do about this?
Other than that, the sorting function works wonderfully.
User | Count |
---|---|
261 | |
130 | |
99 | |
48 | |
47 |