Reset button of Advanced Search (Custom Template)

So, my advanced search page is a custom template. All works fine except for the reset button. Nothing happens when clicked.
Any thoughts?

This is what appears:
Reset

The only thing that occurs to me to solve this is to change it’s link to the page with the reset string “?cmd=reset”

“?cmd=reset” is URL parameter passed to ther List page is to reset the previous search criteria. Reset button in the Search page is just a normal HTML form reset button, it is only used to reset(clear) the user input of the search form, not to reset existing search criteria.

If I understood it correctly, the reset button on the advanced search page should reset all choices (before we even submit them), right?
If that’s it, that’s what I’m saying that it’s not happening and the workaround that occured to me - if nothing better -, was to make it go the “reset” version of the page (my advanced search page is a custom template landing page).
For the temporary workaround of hiding it, I solved it with css.

csmgomes wrote:

onclick=“ew.clearForm(this.form);”

As you can see, the button only clear “this” form (i.e. the user input form in the Search page).

I think we’re saying the same thing. I’m talking about reseting the advanced search form before submitting it and seing the filters working on the list page, so, it should “only clear “this” form (i.e. the user input form in the Search page)”.

I have another project where advanced search page is not a custom template and I’ve tested the reset button.
It does work except for dropwdown fields. I’ve noticed on the newest one that it wasn’t working because all of the fields are dropdowns.
E.g.:

  • Search field that has checkbox or manual input: if I choose the option or write it and use the reset button, it clears /erases the choices made (before submitting the choices and see them filtering the list)
  • Search fields that have dropdowns: If I choose the option and use the reset button, it does not clear the choice