cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Omkar360
Regular Visitor

Change CheckBox Value

Hello,

 

I'm trying to change change checkbox value from false to true with OnChange property of TextInput box. Below is My Current Formula. 

 

For Screen On visible: UpdateContext({ResetTo:false})

For TextInput OnChange: Set(ResetTo,true)

For CheckBox Default Value: ResetTo

 

But some how I'm missing something. 

 

Any thoughts 

 

Thanks,

O360

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User III
Dual Super User III

For Screen On visible: UpdateContext({ResetTo:false})

For TextInput OnChange: Set(ResetTo,true)

 

Either switch Screen OnVisible to: Set(RestTo, false)

or Set TextInput OnChange to: UpdateContext({ResetTo:true})

 

You are using the same name for two different kinds of variables. Either should work, but you can't use the same name for different types of variables.  Pick one.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

4 REPLIES 4
Pstork1
Dual Super User III
Dual Super User III

You are mixing global and context variables.  Stick to either UpdateContext() or Set() but you can't use them interchangeably since they access different variables.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

Hi @Pstork1 ,

 

And How do we do that? I'm new to this platform. 

 

Thanks,

O360

Pstork1
Dual Super User III
Dual Super User III

For Screen On visible: UpdateContext({ResetTo:false})

For TextInput OnChange: Set(ResetTo,true)

 

Either switch Screen OnVisible to: Set(RestTo, false)

or Set TextInput OnChange to: UpdateContext({ResetTo:true})

 

You are using the same name for two different kinds of variables. Either should work, but you can't use the same name for different types of variables.  Pick one.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Omkar360
Regular Visitor

Hi @Pstork1 ,

 

It works. 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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