Mark6921260
Posts: 0
Joined: Mon Jun 09, 2014 3:35 pm

When rendering all pages in one HTML file, drop down lists and labels are not being cleared.

I have rendered all pages into one HTML file.
When I first visit a page, select some options, then navigate away from that page, and then return to the same page to do another selection- the selections I chose previously as well as any messages are still there.
Image

How do I make it where when the screen is returned to it displays like the first time it is shown. Example below:
Image

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

When rendering all pages in one HTML file, drop down lists and labels are not being cleared.

Hi Mark.

You need to reset selected values in default state on "page show" event.

Please follow these steps:

1 Open page in Design mode.

2 Open "events" bottom panel.

3 Select in component select your page and add "page show" JS event handler with code below:

precode

//Here is you need replace "mobileselectmenu_16" with your select component name.
//Also you need to change "defaultSelectValue" with your default value.
Appery("mobileselectmenu_16").val("defaultSelectValue");
Appery("mobileselectmenu_16").selectmenu("refresh", true);

/code/pre

See details on screen shot: http://prntscr.com/3rxrcw/direct

That's all.

Regards.

Mark6921260
Posts: 0
Joined: Mon Jun 09, 2014 3:35 pm

When rendering all pages in one HTML file, drop down lists and labels are not being cleared.

This worked perfectly.
I used the same process to refresh the image that is returned based on the previous screens selection.
Thank you Yurii.

Return to “Issues”