I have a combo box in which I'd like to set the default value but I've not been successful.
I'm using a collection generated on Screen visible…ClearCollect(varAllLanguages,MicrosoftTranslator.Languages()) My collection houses Name and Code. My Combo Box Items is: ShowColumns(varAllLanguages,"Name", "Code").
The translation works fine when I change the languages. However, I'd like to set the default to English and have not been unsuccessful.
After tons of tries, I've left my combo box DefaultSelectedItems set to varAlllanguages and I currently have nothing in Default.
I think in for defaultseletecteditems you want to use something like:
LookUp(varAllLanguages, Code = "en-us")
Sorry, can't remember if 'Code' is the correct column name, but you can check that in the collection view.
DefaultSelectedItems needs to be set to a specific record if multiselect is set to false or to a set of records (table) if multiselect is set to true.
Also remember to reset the combobox (to return it to the default value) when testing and/or when opening the screen (OnVisible).
Wow, thanks so much! I'm anxious to get back in and try it but, alas, I've run out of translates for the day. Will get back to you tomorrow! Really appreciate the quick response.
Check out the on demand sessions that are available now!
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Features releasing from October 2020 through March 2021
Check out the Power Platform Community Highlights