Mike6979865
Posts: 0
Joined: Fri Jul 11, 2014 3:53 pm

Reset All Values on the Scnree Upon Page Entry

Hi,

I create two pages. When I click on the form button from the start screen, I go to the page that has fill-able fields. I fill everything then click submit. Then I click on the HOME button to go back. When I click on the Form button again from the start screen, I want all values to reset. I tried full screen refresh upon entry, but it didn't work. I want to reset all values. Please help.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Reset All Values on the Scnree Upon Page Entry

Hi Mike,

Could you please try using "full screen refresh" when navigate to another page?
Let us know about the result please.

Mike6979865
Posts: 0
Joined: Fri Jul 11, 2014 3:53 pm

Reset All Values on the Scnree Upon Page Entry

Hi Katya,

This is what I've been using. It doesn't clear the fields...

Oliver Fisk
Posts: 0
Joined: Wed Jul 09, 2014 10:02 pm

Reset All Values on the Scnree Upon Page Entry

I have a similar need. But for me it is clearing the local variables which populate the fields. I can clear them with individual events but it's quite a long process.

OP are you populating those fields from local variables?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Reset All Values on the Scnree Upon Page Entry

Hi Oliver,

To clear input you can use:pre$("input").val("");/preIf you need to clear any other components let us know please.

Mike6979865
Posts: 0
Joined: Fri Jul 11, 2014 3:53 pm

Reset All Values on the Scnree Upon Page Entry

Hi,
I added the following under events:

Component: Form
Event: Load
Action: Run Javascript

and I added the coded that you just provided. I entered some text in the fields, and clicked on Home, and click on the button to go to the form again, and the text that i entered is still there.

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Reset All Values on the Scnree Upon Page Entry

Hi Mike,

Could you please try on Page Show event? Start screen is not reloaded when you return to it.

Mike6979865
Posts: 0
Joined: Fri Jul 11, 2014 3:53 pm

Reset All Values on the Scnree Upon Page Entry

Worked!

Also, how do I clear an image. In the camera tutorial, you have the image shows in photopreview. How do I clear the image once I go to that page?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Reset All Values on the Scnree Upon Page Entry

Hi Mike,

Please describe with details what you want to do?

Return to “Issues”