Clear advanced search query fields (v2017)

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
eayvl
User
Posts: 315

Clear advanced search query fields (v2017)

Post by eayvl »

Hi,
How can I clean the advanced search query fields after making a query?

I'm trying with this code in "Startup Script" under "Client Scripts" -> "Table-Specific" -> "List Page":

what am I doing wrong because it does not work, I'm using Search, Modal dialog (Advanced).

$(document).ready(function() {
if (CurrentPage()->BasicSearch->getKeyword() <> "") {
$("#psearch").val("");
$("#psearch").focus();
}
});

Thanks.

Thanks.


arbei
User
Posts: 9396

Post by arbei »

eayvl wrote:
if (CurrentPage()->BasicSearch->getKeyword() <> "") {

If you want to clear advanced search, check the properties of AdvancedSearch not BasicSearch. (Assume v2019.)


eayvl
User
Posts: 315

Post by eayvl »

I am working with v2017.0.7.


arbei
User
Posts: 9396

Post by arbei »

Same in v2017.


Post Reply