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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

Top Solution Authors
Top Kudoed Authors