Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get Fabric certified for FREE! Don't miss your chance! Learn more

Reply
Syndicate_Admin
Administrator
Administrator

dropdown menu with a working button

how can i get a dropdown menu with a working button??

 

I have tried lots of coding i've found online but can't get it to work. My drop down menu named as dropdown1 and the options are BSC1, CV5 and PCR3. The pages I want the drop down menu to direct them to are labelled the same to make it easier. I'm trying to link the drop down with a confirm button that will then navigate the user to the pages

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

@Emmabb I would recommend utilizing a switch in the onselect of your button

It would work like this

 

Switch(dropdown.selected.value,

"Possible Value 1", Navigate(where to go if this is outcome),

"Possible value 2", Navigate(where to go if this is outcome),

Navigate(where to go if outcome is not listed above)

)

 

On my vellphone so syntax may be slightly off but it should get you going in roght direction

Syndicate_Admin
Administrator
Administrator

@Emmabb , are you talking about a Canvas App? if so, you should be able to use this formula on the OnSelect property of your button: Navigate(dropdown1.SelectedText)

 

Helpful resources

Announcements
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.