cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper V
Helper V

Disable button unless all dropboxes have been selected

Morning All! Hope you're well! 

 

Here is my issue.

 

I have 3 drop boxes with 3 options 

 

1)"-"

2)"Yes"

3)"No"

 

I have a button that I would like to remain disabled until all 3 checkboxes have selected an option apart from "-"

 

I already have another button that will be visible if all dropdowns have "Yes" but I also need to make sure that if the user selects "No" for any of these dropdowns this button will then be selectable. By default, all dropdowns are reset to "-" as default and I would like the button to remain disabled until each dropdown has been used. 

 

If(Signatory_OnPost_Dropdown.Selected.Value="-") && (Signatory_Powered_Dropdown.Selected.Value="-") && (Signatory_Connected_Dropdown.Selected.Value="-",DisplayMode.Edit,
DisplayMode.Disabled
)

 

error.png

1 ACCEPTED SOLUTION

Accepted Solutions
Super User II
Super User II

Heya!

 

Ok, so I'm thinking its just that we've got the disabled/edit swapped around and we want it that if Any of those items is still set to "-" then the button cant be enabled right?

 

 

If(
   Signatory_OnPost_Dropdown.Selected.Value="-"
   ||
   Signatory_Powered_Dropdown.Selected.Value="-"
   ||
   Signatory_Connected_Dropdown.Selected.Value="-",
   
   DisplayMode.Disabled,
   DisplayMode.Edit
)

 

 

Could you try this and let me know if that works for what you wanted?

 

Cheers,

Sancho 


@iAm_ManCat

Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


View solution in original post

2 REPLIES 2
Super User II
Super User II

Heya!

 

Ok, so I'm thinking its just that we've got the disabled/edit swapped around and we want it that if Any of those items is still set to "-" then the button cant be enabled right?

 

 

If(
   Signatory_OnPost_Dropdown.Selected.Value="-"
   ||
   Signatory_Powered_Dropdown.Selected.Value="-"
   ||
   Signatory_Connected_Dropdown.Selected.Value="-",
   
   DisplayMode.Disabled,
   DisplayMode.Edit
)

 

 

Could you try this and let me know if that works for what you wanted?

 

Cheers,

Sancho 


@iAm_ManCat

Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you!


Thanks!
You and everyone else in the community make it the awesome and welcoming place it is, keep your questions coming and make sure to 'like' anything that makes you 'Appy
Sancho Harker, MVP


View solution in original post

Ha, yes! I just figured it out and came back to answer my own question! 😂

Glad what I did was what you replied with! 

 

If(Signatory_OnPost_Dropdown.Selected.Value = "-" || Signatory_Powered_Dropdown.Selected.Value = "-" || Signatory_Connected_Dropdown.Selected.Value = "-", DisplayMode.Disabled,DisplayMode.Edit)

Helpful resources

Announcements
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Top Solution Authors
Top Kudoed Authors
Users online (79,724)