Advanced search clear form

This public forum is for user-to-user discussions of ASP.NET Maker. Note that this is not support forum.
Post Reply
Danny
User
Posts: 138

Advanced search clear form

Post by Danny »

Hi,

At the listpage you can make an extended selection.
After you make the selection, we want to go to the advanced search.

We want empty fields, but asp.netmaker remembers the search results from the listpage.

How to empty the search result. Maybe to do something with pageload javascript or jquery.

We tried already a redirect to <table>srch.vbhtml?cmd=resetall

But this is not working.

How to solve this problem.

Regards,


motfs
User
Posts: 258

Post by motfs »

There is a "Reset" button in Advanced Search Page. You can add JavaScript code to detect the querystring (cmd=resetall) and trigger to click the "Reset" button, e.g.

// your code to detect querystring value
$("#btnReset").click();


Danny
User
Posts: 138

Post by Danny »

Thank you, Motfs,

This works fine for me at the global startup search pages:

if (EW_PAGE_ID == "search") {
$("#btnReset").click();
}

Regards,


Post Reply