web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / force to make a select...
Power Apps
Answered

force to make a selection in a dropdown from button

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

On my form i have a dropdown box "Topics_Input"

Its default value is "<Select Drop Down>"

Button "btn_Submit"

 

 

When a user clicks on a button before submitting other code.

I need to check this dropdown. If no Selection has been made, I need to stop the code ?

This is what I have so far on the button "OnSelect"

UpdateContext({ visible: true });   

 

 

Thanks

Dave

Categories:
I have the same question (0)
  • Verified answer
    KrishnaV Profile Picture
    5,023 on at

    Hi @Anonymous ,

     

    Try this:

    if(IsBlank(dropdown.selected.value) || dropdown.selected.value="Select Drop Down", Updatecontext({varShowSubmit:false}),Updatecontext({varShowSubmit:true})

    Now you set the variable to visible property of the button:

    property visible: varShowSubmit

     
    I hope this resolved your issue if you see any challenge/need further help please let me know I am always happy to do it for my community.

    Regards,
    Krishna
    If this post helps you give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    does not like the   = sign  

     

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    got this to work.

    If(IsBlank(Topics_Input.Selected.Result) || Subtopic_Input.Selected.Result ="<Select Drop Down>", UpdateContext({visible:false}),UpdateContext({visible:true}))

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 325 Most Valuable Professional

#2
11manish Profile Picture

11manish 165

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 88 Super User 2026 Season 1

Last 30 days Overall leaderboard