We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 7455
    • 2,204 Posts
    I replaced the follong part of the searchform snippet to get a please wait... status in the button

    replace this line:
    $SearchForm .= '<input type="submit" name="sub" class="button" value="Search">'; 
    


    for this:
    $SearchForm .= '<input type="submit" name="sub" class="button" value="Search" onClick="this.value=\'Please wait...\'">'; 
    


    I just added this part:
    onClick="this.value=\'Please wait...\'"
    

    this is usable for any form.

    greats Dimmy
      follow me on twitter: @dimmy01
    • Could you also have it disable the button on submit?
        Ryan Thrash, MODX Co-Founder
        Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
      • To disable the button, you can use:

        onClick="this.disabled=true;"


        Cheers, Garry
          Garry Nutting
          Senior Developer
          MODX, LLC

          Email: [email protected]
          Twitter: @garryn
          Web: modx.com
          • 6726
          • 7,075 Posts
          Nice tweak, will most definitely use it smiley
            .: COO - Commerce Guys - Community Driven Innovation :.


            MODx est l&#39;outil id