In this Power Apps tutorial explains, how to set a dropdown value on a button click in Power Apps. I will show you, how to change the Power Apps dropdown value by clicking on a button click.
Set Dropdown Value on Button Click in Power Apps
I will show you how to set the dropdown value on a button click in Power Apps.
Example 1:
I have created a Power Apps Canvas app and then added a Slider Control, Button Control, and a Dropdown control. The Power Apps dropdown control contains the “Project Status” values that I have added manually.
Next, Whenever the user adjusts the slider and clicks on a button control. The dropdown items will be updated based on the slider control value.

Follow the below steps to achieve this:
Step 1: [Insert a Slider control]
- On the Power Apps screen, insert a Slider control.

Step 2: [Insert a Dropdown control and add the items manually]
- Insert a Dropdown control -> Set its Items property to:
["Completed" , "In progress", "Not Started"]

Step 3: [Insert a button control and create a variable to set a dropdown value]
- Insert a Button control -> Set its OnSelect property to:
If(
sld_ProjectCompletion.Value = 100,
UpdateContext({varSetDrp: {Value: "Completed"}});
Reset(drp_ProjectStatus),
sld_ProjectCompletion.Value < 2,
UpdateContext({varSetDrp: {Value: "Not Started"}});
Reset(drp_ProjectStatus),
sld_ProjectCompletion.Value < 100,
UpdateContext({varSetDrp: {Value: "In progress"}});
Reset(drp_ProjectStatus)
)
Where,
- sld_ProjectCompletion = Slider Control name
- varSetDrp = Provide the variable name
- Completed, Not Started, In progress = Dropdown values
- drp_ProjectStatus = Dropdown control name

Step 4: [On the dropdown control, assign a variable to set a dropdown value]
- Select a Dropdown control -> Set its Default property to:
varSetDrp.Value
Where,
- varSetDrp = Assign the variable name here

- Save, Publish, and Preview the app, when a user adjusts the slider control and clicks on a button control. The dropdown will automatically select an item based on the slider value.

This is how to set a dropdown value on a button a click in Power Apps.
Example 2,
I have a SharePoint Online list [Recruitment Tracker], that has different columns like:
Column Name | Data Type |
---|---|
Candidate Name | Title |
Position | Choice [“Project manager”,” User Researcher”, “Designer”, “Account Manager] |
Progress | Choice [“Active”, “On hold”, “Offer sent”, “New Application”, “Top pick”] |
Application Date | Date and time |
Interview Date | Date and time |

I have created a Power Apps Canvas app and then added a Dropdown control and a Button control. The dropdown control contains all the values from the SharePoint list choice column. When a user clicks the button control [Change Progress To Active], the dropdown value should be updated to Active.

Let’s see how to achieve this:
- On the Power Apps screen, insert a Button control and set its OnSelect property to:
Set(
varDropDownDefault,
"Active"
);
Where,
- varDropDownDefault = Variable name
- Active = SharePoint List Choice column value

- Above button control, insert a Dropdown control -> Set all the below properties of this dropdown as:
Items = Distinct(
'Recruitment Tracker',
Progress.Value
)
Default = varDropDownDefault
OnChange = Set(
varDropDownDefault,
Self.Selected.Value
)

- Save, Publish, and Preview the app. Click on the button control, then by default dropdown item will be selected as “Active”.

This is how we can update a dropdown value on a button click in Power Apps.
Conclusion
This Microsoft Power Apps tutorial taught us all about “How to set the dropdown value on a button click in Power Apps.”
You may like:
- Convert Textbox to Dropdown in Power Apps
- How to Get Dropdown Selected Value in Power Apps?
- How to Set Power Apps Dropdown Values Based on Variable?
- How to Convert Dropdown to Radio Button in Power Apps Form?
- Bind Power Apps Text Input Values In A Dropdown Control

Preeti Sahu is an expert in Power Apps and has more than 6 years of experience working with SharePoint and the Power Platform. As a Power Platform expert for Power BI, Power Apps, Power Automate, Power Virtual Agents, and Power Pages, she is currently employed with TSinfo Technologies. She is the author of the book Microsoft Power Platform A Deep Dive. She also made a big technical contribution to SharePointDotNet.com in the form of articles on the Power Platform. She enjoys traveling and spending time with her family in her spare time.