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

Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM. Register 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
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.

Top Kudoed Authors