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 / Trouble with enabling ...
Power Apps
Unanswered

Trouble with enabling Button based on pre-defined conditions

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi everyone, 

 

As part of a project, I am trying to design a checklist with the help of a gallery with a toggle button and radio buttons in it. The Toggle button is the first condition that needs to be satisfied, and once the Toggle button is 'false' then the radio buttons are visible and are the second condition that needs to be fulfilled to submit the data. 

 

To ensure that both the toggle button and radio buttons are clicked, I am trying to make the final 'Submit' button disabled until either of it is clicked. So far I have come up with this formula (as below) , and PowerApps is not indicating any errors, but upon trying various combinations, I was able to find out that the issues are with the second part of the code (after the OR function). 

 

If(!IsEmpty(Filter(Gallery5.AllItems,IsBlank(Radio1.Selected.Value))) || !IsEmpty(Filter(Gallery5.AllItems,IsBlank(Toggle2.Value=true))), DisplayMode.Disabled,DisplayMode.Edit)

 

Would appreciate any help in trying to figure out why I am not able to reach the desired output - to get the button enabled if all the toggle buttons are true OR if the toggle button is false and a radio button is selected. 

 

Thanks for your help in advance! 

Categories:
I have the same question (0)

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 414

#2
Valantis Profile Picture

Valantis 387

#3
timl Profile Picture

timl 344 Super User 2026 Season 1

Last 30 days Overall leaderboard