cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
patels11
Helper I
Helper I

Checkbox Did not reset on change of dropdown selection

Hello,

i have one Application where when user changes the dropdown items then Checkbox should be unchecked if checked. i have added formula as per below snap but not working.

 

Help appreciated.

 

Regards,

Sachin Patel

patels11_0-1655959465120.png

 

4 REPLIES 4
365-Assist
Solution Sage
Solution Sage

You need to use a variable to control the CheckBox default.

 

DropDown -> OnChange use this command

Set(varCheck,true)

 

Then in the checkbox default use this

365Assist_0-1655962287996.png

If(varCheck=true,true,false)


---------------------------------------------------
Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful as can help others.

Subscribe: https://www.youtube.com/channel/UCFpvUlpx84FuIPOdInGKMTw
Twitter: https://twitter.com/assist_365

Regards
Darren Lutchner - 365 Assist

@365-Assist  Thanks for response.

actually there is one existing formula in Default of Checkbox property so how to use this variable control along with existing formula ?

 

If(varCheck=true,true,false)

patels11_0-1655973488945.png

 

365-Assist
Solution Sage
Solution Sage

Create a new label in the Gallery row  that will use your formula set the variable (varCheck) to true or false. 

if(!IsBlank(LookUp(ColSelected1,ID=ThisItem.ID))=true,set(varCheck,true),set(varCheck,false))

Hide the label the so the users don't see it.


---------------------------------------------------
Please Accept as Solution if it solves your question. Or just give it a Thumbs Up if it is helpful as can help others.

Subscribe: https://www.youtube.com/channel/UCFpvUlpx84FuIPOdInGKMTw
Twitter: https://twitter.com/assist_365

Regards
Darren Lutchner - 365 Assist

v-jefferni
Community Support
Community Support

Hi @patels11 ,

 

Could you please share more details about your scenario? Would you like to uncheck the Check box if the Dropdown within the same row of the Gallery being changed?

 

If so, you need to use a column in the Items of the Gallery to associate with the Check box and the Dropdown. So when Dropdown selected item being changed, it will update the column value to false and the Check box bounds to this column so it will uncheck. You cannot bound the Check box to a variable, since all Check boxes in the Gallery will uncheck if the variable is false.

 

Please clarify what formula is in the Items property of the Gallery and how did you create the collection colSelected.

 

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.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,804)