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

Resetting Controls on a Screen

Hello,

 

I would like to reset the a bunch of controls on my screen(textboxes, radio buttons), that I would like to reset. I have tried setting the Reset method of these controls to a variable of type boolean, and set the variable to true when i need the controls reset, but the controls are not being reset to their default values, am I missing something?

1 ACCEPTED SOLUTION

Accepted Solutions
Super User
Super User

Re: Resetting Controls on a Screen

Hi @John_Martel 

 

On Visible of your form set that variable to false

 

Then when you want to reset , set that variable to true

 

next if you need to reset again, you would have to change it back to false then true

 

so when resetting try

set(var,false);set(var,true)

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

2 REPLIES 2
Super User
Super User

Re: Resetting Controls on a Screen

Hi @John_Martel 

 

On Visible of your form set that variable to false

 

Then when you want to reset , set that variable to true

 

next if you need to reset again, you would have to change it back to false then true

 

so when resetting try

set(var,false);set(var,true)

 

Regards,

Reza Dorrani

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly

View solution in original post

John_Martel
Level: Powered On

Re: Resetting Controls on a Screen

Thanks, gotta love global variables!!

Helpful resources

Announcements
firstImage

Microsoft Business Applications Virtual Launch Event

Join us for an in-depth look at the new innovations across Dynamics 365 and the Microsoft Power Platform.

firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

Top Kudoed Authors
Users Online
Currently online: 275 members 2,058 guests
Please welcome our newest community members: