cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
golfnutt82
Impactful Individual
Impactful Individual

Hiding a Submit Button if a Combo Box is Empty

Hello,

This is a new form not edit.
I provide a filter in "Role Type Filter".
I then provide some text in the "Enter Role Word Search Text" box.
Finally, I then click the dropdown arrow on the combo box and make a selection.
The form populates the fields on the right.
The problem is that someone can still submit a form even if the Role Name is not populated.

I would have thought this would have been easy, but I was wrong.
I have a form that has a combo box and at the bottom right I have a submit button.
If I try to use IsEmpty or IsBlank in the button's Visible property to hide the button I get an error.

 

I need to hide the submit button because "Role Name" cant be empty

 

golfnutt82_0-1643051318925.png

Thank you!

1 REPLY 1
Abhilash_Swain
Impactful Individual
Impactful Individual

Hi @golfnutt82 ,

Please try with CountRows(ComboBox1.SelectedItems) in the Visible property of the button.

 

Give a like and accept it as the solution if I answered your query.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (3,713)