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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
Syndicate_Admin
Administrator
Administrator

Trouble with enabling Button based on pre-defined conditions

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! 

0 REPLIES 0

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors
Top Kudoed Authors