This should be simple. I have a combobox (ClientContactCB) with a list of names. One name is Ted Bell. I have a variable, varClientContact = "Ted Bell". I want to set the value of the combobox to the value of the variable "Ted Bell".
What do you mean by "set the value fo the combobox"? Do you mean:
1. Changing the value of one of the ComboBox items?
2. Selecting that item in ComboBox?
For #1, you would have to change tha value on the source (form which the ComboBox is getting data)
For #2 For example:
Button1.OnSelect=Reset(ClientContactCB);Set(d, [varClientContact ])
Clicking on Button1 should select the item from the variable varClientContact
I guess I'm not explaining myself very well. But I finally figured out problem. DefaultSelectedItems expects a table. Simply put square brackets around it to cast as table [varClientContact]. After I figured it out I looked dinusc's solution and noticed square brackets. Wasted 2 hours on this.
How do I set the DefaultSelectedItems to the item the user has selected from the drop down ?
I'm not understanding your question. Do you have Dropdown and a Combobox?
To get value of Combobox selection use this:
ClientContactCB is the combobox. FullName is the field in the combobox. If this is not what you want post specific details on your question.
The following should work for default ComboBox1 and DropDown1 controls:
Check out these cool Power Apps & vote on your favorite!
Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)
Check out whats happening in Power Apps
FIll out a quick form to claim your community user group member badge today!