cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mrleetyler
Resolver I
Resolver I

Checkbox trigger "uncheck" upon reset

I have a number of checkboxes all creating actions "Oncheck" and "Uncheck" however my 1 Checkbox I want to untick all of the other checkboxes and trigger the UnCheck event.

 

I can get them to unCheck via the Reset event but I cannot get it to run the Uncheck function they just uncheck leaving any OnCheck function active.

 

1 ACCEPTED SOLUTION

Accepted Solutions
v-jefferni
Microsoft
Microsoft

Hi @mrleetyler ,

 

Do you want to use a check box to check and uncheck all other check boxes and trigger their OnUncheck functions?

 

If you do, you could follow my demonstration below :

uncheck all.gif

First, set all Default property of child Check Boxes to ParentCheckBox.Value, so that you could control all Check Boxes through the parent check box.

 

Then, copy OnUncheck formulas of child check boxes and paste them onto OnUnchek of parent check box. Once uncheck the parent check box, it triggers all UnCheck events.

I copied and pasted two variables on the OnUncheck of CheckBox1 which is the parent check box:

 

Set(varText1, "Option1 Has Been UnChecked");Set(varText2, "Option2 Has Been UnChecked")       //OnUncheck of CheckBox1
varText1                                                                                      //Text of Label1
varText2                                                                                      //Text of Label2

 

The two variables are also on the child check boxes' OnUncheck, and this makes the auto-uncheck of parent check box could act a same action compared with manually uncheck child  check boxes.

 

In short, auto check or uncheck could not trigger OnCheck or OnUncheck, but could apply formulas onto the parent check box to achieve the goal.

 

Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution  to help the other members find it.

View solution in original post

2 REPLIES 2
eka24
Super User III
Super User III

Your request is not very clear so if you can explain what you want again. Also can you show a screenshot.

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

v-jefferni
Microsoft
Microsoft

Hi @mrleetyler ,

 

Do you want to use a check box to check and uncheck all other check boxes and trigger their OnUncheck functions?

 

If you do, you could follow my demonstration below :

uncheck all.gif

First, set all Default property of child Check Boxes to ParentCheckBox.Value, so that you could control all Check Boxes through the parent check box.

 

Then, copy OnUncheck formulas of child check boxes and paste them onto OnUnchek of parent check box. Once uncheck the parent check box, it triggers all UnCheck events.

I copied and pasted two variables on the OnUncheck of CheckBox1 which is the parent check box:

 

Set(varText1, "Option1 Has Been UnChecked");Set(varText2, "Option2 Has Been UnChecked")       //OnUncheck of CheckBox1
varText1                                                                                      //Text of Label1
varText2                                                                                      //Text of Label2

 

The two variables are also on the child check boxes' OnUncheck, and this makes the auto-uncheck of parent check box could act a same action compared with manually uncheck child  check boxes.

 

In short, auto check or uncheck could not trigger OnCheck or OnUncheck, but could apply formulas onto the parent check box to achieve the goal.

 

Best regards,
Community Support Team _ Jeffer Ni
If this post helps, then please consider Accept it as the solution  to help the other members find it.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

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

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (45,445)