Please Wait Message for Search

HiUsing PHPMaker v2022.4.0I have an advanced search page setup and complex search can take a little while (which is fine) I was thinking maybe there would be some custom code to display a Please Wait type of message ?Any pointers really appreciatedKind RegardsJohn Berman

PHPMaker v2022 uses PACE to display the progress bar while the page is being loaded.

You may customize the look and feel of it from src/config.php file, see this following code:

    // Pace options
    "PACE_OPTIONS" => [
        "ajax" => [
            "trackMethods" => ["GET", "POST"],
            "ignoreURLs" => ["/session?"]
        ]
    ],

See the documentation.

If the wait is after pressing the Search button and before the page is reloaded, one of the ways may be adding a click handler to the search button, e.g.

    $(".ew-search-panel #btn-submit, .modal-footer .ew-submit").on("click", function() { // Select the submit button, this example assumes extended and modal advanced search
        Swal.fire({
            title: 'Searching',
            html: 'Please wait...',
            showConfirmButton: false
        });
    });

How to activate this for all the button and link which are clickable in my project

I personally don’t recommend doing that, but if you prefer, it all depends on your CSS selector for selecting the buttons, read jQuery().