cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
PivotMananger
Level: Powered On

disable multiple check on checkboxes with three results

Im using my Checkboxes  to validate data to my CDS. 

This already works like a charm but unfortunately you can click both boxes.

But there should be only three options:

 

* Left box is checked (1:0)

* Right box is checked  (0:1)

* Both boxes are unchecked (0:0)

 

 

 

        KlappenFunktion: If(
            KlappenFunktionIO.Value = true;
            KlappenEingestelltIO.Value;
            If(
                KlappenFunktionNIO.Value = true;
                KlappenFunktionNIO.Value;
                ""
            )
        );

 

 

This is how im Saving my Value.

So there is always a priority: LeftBox > RightBox > Unchecked

 

My goal is to disable the possibility to check both boxes at the same time.

I only want to use checkbox elements.

1 ACCEPTED SOLUTION

Accepted Solutions
PowerAddict
Level 10

Re: disable multiple check on checkboxes with three results

Hi, 

 

You need to control the DisplayMode of each Checkbox based on the other's value. For example, I have two checkboxes Checkbox1 and Checkbox2. 

 

DisplayMode of Checkbox1 = If(Checkbox2.Value, DisplayMode.Disabled, DisplayMode.Edit)

 

DisplayMode of Checkbox2 = If(Checkbox1.Value, DisplayMode.Disabled, DisplayMode.Edit)

 

It basically checks if the value of the other checkbox is true, if it is, then it disables the checkbox. Please let me know if this works for you. 

 

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)

View solution in original post

1 REPLY 1
PowerAddict
Level 10

Re: disable multiple check on checkboxes with three results

Hi, 

 

You need to control the DisplayMode of each Checkbox based on the other's value. For example, I have two checkboxes Checkbox1 and Checkbox2. 

 

DisplayMode of Checkbox1 = If(Checkbox2.Value, DisplayMode.Disabled, DisplayMode.Edit)

 

DisplayMode of Checkbox2 = If(Checkbox1.Value, DisplayMode.Disabled, DisplayMode.Edit)

 

It basically checks if the value of the other checkbox is true, if it is, then it disables the checkbox. Please let me know if this works for you. 

 

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)

View solution in original post

Helpful resources

Announcements
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Top Kudoed Authors (Last 30 Days)
Users online (5,772)