Announcements
Lets Say I have a datasource with all the countries and their corresponding states/proveniences and the states has been populated in my combobox like the followingDistinct(Filter(tbl_Country, 'Country' = First(cb_Country.SelectedItems).Result),'StateName')- the filter is there because the user can choose a country which filters a states comboboxNow I have a requirement to add an "NA" option to my comboBox but I cant change the underlying data. Meaning I cant go to datasource and add NA manually to the table. How can I add the 'NA' option along with the rest of the data to my combo box. Secondly Can I have the NA option appear first?
In similar circumstances, I have loaded the values for my combobox to a collection, then patched the collection to add the N/A value, using a leading space so it sorted to the top of the list, and then used that collection instead of the original table.
in this video @RandyHayes shows you how to add a "All" option to a dropdown. Same basic idea can help you add any other option you want, and set it's behavior.
https://www.youtube.com/watch?v=nlfZD6lsCDc
Put this code on Start of the App
ClearCollect( CollCountry, {Result: "NA"} ); Collect( CollCountry, Distinct(Filter(tbl_Country, 'Country' = First(cb_Country.SelectedItems).Result),'StateName') )
And on the Items property of the DropDown put CollCountry
I made a test case and this should work 🙂
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
11manish 232 Super User 2026 Season 2
WarrenBelz 202 Most Valuable Professional
Mohsin Ali 122