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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors
Top Kudoed Authors