Forum Discussion
FILTER GALLERY WITH DROPDOWN BY CHOICE FIELD IN SHAREPOINT LIST
ChrisWebbTech I'm trying to do the same, but I'm getting an error. The intellisense is saying = is an invalid argument.
'Sponsoring Org' is the Choice Field in my list. Intellisense also prompted me to use result instead of value.
Any ideas if there'a a different issue with my list?
Filter('DIA/DRA', 'Sponsoring Org'= ComboBox5.Selected.Result) and
Filter('DIA/DRA', 'Sponsoring Org'= ComboBox5.Selected.Value) both give the error on =
- Omar_204Apr 20, 2022Copper ContributorTHANK YOU SO MUCH!
This was the solution to my problem also. The filtering is working now when user selects their name from the combo box dropdown, the gallery containing the collection of 3 different SharePoint lists) gets filtered only with the items only containing the specific name (chosen from the dropdown) - willnowApr 27, 2021Copper Contributor
The schema of a Choice column has two keys, ID (number) and Value (string). Since your Sponsoring Org column is of type Choice, it should be:
'Sponsoring Org'.Value
The reason is you're currently comparing an object to a string and because those data types don't match, that error is expected. Append .Value to your Choice column in your filter and now you're comparing a string to a string.- WilliamAzevedoNov 15, 2021Copper ContributorI just can’t thank you enough for that explanation.