BjornS
Posts: 0
Joined: Tue Nov 20, 2012 12:22 pm

How do i reset values in textboxes/select menus when loading the page again.

In my app the user fill in a report form and send it to a backend. When that is done i want the start screen to reset all values back to the default ones so they can make a new report if needed. So i need to clear all values. How do i do that? Do i need a javascript to do it or is there some onload event i can use. I have already tried full screen refresh and the old values are still there.

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

How do i reset values in textboxes/select menus when loading the page again.

Hello,
I've just tested full screen refresh - it works for me. Do you use it on the second page with "Back" button?

BjornS
Posts: 0
Joined: Tue Nov 20, 2012 12:22 pm

How do i reset values in textboxes/select menus when loading the page again.

When they are done with filling in the form they push a button and on success the move to a new page where it says thank you for sending etc. On that page there is a button that will load the startScreen again when tapped on. I use navigate to page and i use full screen refresh and still i got the old values still there. Is there anything i do wrong? Seems like its come cache thing.

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

How do i reset values in textboxes/select menus when loading the page again.

Untick "Render all pages in one HTML file" in project settings.
This must help :)

BjornS
Posts: 0
Joined: Tue Nov 20, 2012 12:22 pm

How do i reset values in textboxes/select menus when loading the page again.

That did solve the problem :) Thx!

Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

How do i reset values in textboxes/select menus when loading the page again.

I have not been able to refresh my cache. I am on an Android and can refresh the search results in a browser but not my phone. Any tips?

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

How do i reset values in textboxes/select menus when loading the page again.

Hi Scott,

For each component you can reset values via Set property action on Page Show event .

Scott Schechtel6280324
Posts: 0
Joined: Sun Sep 29, 2013 12:03 am

How do i reset values in textboxes/select menus when loading the page again.

It looks like simply tapping the Home screen after seeing the results refreshes the cache just fine as well. Thanks,

Return to “Issues”