cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

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 II
Dual Super User II

Hey @Anonymous 

 

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 II
Dual Super User II

Hey @Anonymous 

 

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

Super User II
Super User II

@Anonymous 

 

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)

@Anonymous 

 

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
New Badges

New Solution Badges!

Check out our new profile badges recognizing authored solutions!

New Power Super Users

Congratulations!

We are excited to announce the Power Apps Super Users!

Power Apps Community Call

Power Apps Community Call: February

Did you miss the call? Check out the Power Apps Community Call here.

Microsoft Ignite

Microsoft Ignite

Join digitally, March 2–4, 2021 to explore new tech that's ready to implement. Experience the keynote in mixed reality through AltspaceVR!

Top Solution Authors
Top Kudoed Authors
Users online (46,764)