hi , i need to have a button to reset all search elements,there is a ‘show all’ button but i want to do it at client without search all again, so i need help to:1: how to add a buttton in toolbar
2:how to reset all elements by jqueeytnx alot
Hi,We use at global startup script://Advanched search op elke pagina worden de zoekresultaten gereset;
@if (IsLoggedIn()) {
if (CurrentPageID() == “search”) {
$(“#btnReset”).click();
}
}Regards, Danny
Hi,This code is not working anymore at version 2021.
What’s wrong ?We use at global startup script://Advanced search reset;
@if (IsLoggedIn()) {
if (CurrentPageID() == “search”) {
$(“#btnReset”).click();
}
}Regards,Danny
You can use the client side ew.IS_LOGGEDIN and ew.PAGE_ID variables to check if the user is logged in and the page id. For example:if (ew.IS_LOGGEDIN && ew.PAGE_ID == “…”) {
//…
}
Thank you, MichaelG