cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Gadsweb
Frequent Visitor

Update a dropdown dynamically

Hello,

 

I'm totally new to powerapps and i cannot achieve a simple task.

Lets's say I have a textbox (textBox1) and a dropdown (dropdown1) with for exemple 3 values ("choice 1", "choice 2",...)

 

How to select "choice 1" when text in textBox1 is changing?

 

I have tried to place dropdown1.Selected.Value="choice 1" in the OnChange event of textBox1, but nothing happens.

 

What's wrong?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
v-monli-msft
Community Support
Community Support

Hi @Gadsweb ,

 

Set below formulas to make this work:

TextInput1.OnSelect=Set(V1,"Choice1")
Dropdown1.Default=V1

You can also set the formula to define V1 when you does not type in the textinput control. For example:

Screen1.OnVisible=Set(V1,"Choice2")

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
v-monli-msft
Community Support
Community Support

Hi @Gadsweb ,

 

Set below formulas to make this work:

TextInput1.OnSelect=Set(V1,"Choice1")
Dropdown1.Default=V1

You can also set the formula to define V1 when you does not type in the textinput control. For example:

Screen1.OnVisible=Set(V1,"Choice2")

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

May UG Leader Call Carousel 768x460.png

June User Group Leader Call

Join us on June 28 for our monthly User Group leader call!

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Users online (4,262)