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

Disable checkbox on selection of other check box

Hi,

 

Thanks for your help so far.

 

I have another question.

 

I have two checkboxes - YesCheck and NoCheck

 

When YesCheck is selected I need NoCheck to be disabled and vice versa.

 

I was trying to use the solution similar to this post

 

but that wasn't working, 

 

thanks again for your help

 

Jon

1 ACCEPTED SOLUTION

Accepted Solutions
Dual Super User
Dual Super User

Re: Disable checkbox on selection of other check box

Hey @jdrussell78 

 

You can set the configuration like:
 
YesCheckbox -> DisplayMode -> If(CheckBox2.Value, DisplayMode.Disabled, DisplayMode.Edit)
NoCheckbox -> DisplayMode -> If(CheckBox1.Value, DisplayMode.Disabled, DisplayMode.Edit)
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

3 REPLIES 3
Dual Super User
Dual Super User

Re: Disable checkbox on selection of other check box

Hey @jdrussell78 

 

You can set the configuration like:
 
YesCheckbox -> DisplayMode -> If(CheckBox2.Value, DisplayMode.Disabled, DisplayMode.Edit)
NoCheckbox -> DisplayMode -> If(CheckBox1.Value, DisplayMode.Disabled, DisplayMode.Edit)
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

dynamicsedge
Level 8

Re: Disable checkbox on selection of other check box

@jdrussell78 

 

You can try this as mentioned by @yashag2255 :

 

YesCheckbox -> DisplayMode -> If(CheckBox2.Value, DisplayMode.Disabled, DisplayMode.Edit)
NoCheckbox -> DisplayMode -> If(CheckBox1.Value, DisplayMode.Disabled, DisplayMode.Edit)
 
If your checkbox are called YesCheckbox and NoCheckbox literally, then you should not say CheckBox1 and CheckBox2. You would then literally try this instead:
 
For YesCheckbox under DisplayMode property:
 

 

If(NoCheckbox.Value, DisplayMode.Disabled, DisplayMode.Edit)

 

The above means that if NoCheckBox has a value, YesCheckbox will be disabled - if NoCheckBox does not have a value,  then YesCheckbox will be in the Edit mode (i.e. enabled)
 
For  NoCheckbox under DisplayMode property:
 
 

 

If(YesCheckbox.Value, DisplayMode.Disabled, DisplayMode.Edit)

 

The above means that if YesCheckBox has a value, NoCheckbox will be disabled - if YesCheckBox does not have a value, then NoCheckbox will be in the Edit mode (i.e. enabled)

Dual Super User
Dual Super User

Re: Disable checkbox on selection of other check box

@jdrussell78 

 

There could be a large number of possibilities for naming the controls, whatever convention has been used by you (literally), the same needs to be updated in the formula as this would complete the logical loop.
 
Hope this Helps!
 
If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

Helpful resources

Announcements
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps 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

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (4,895)