Help Desk Software

Knowledgebase
Back to HESK.com > HESK Knowledgebase > Knowledgebase

Search help:


How to disable "Submit" button and multiple submissions?

Solution

Having problems with a ticket being submitted multiple times?

This article will show you how to disable the Submit button after it has been click and change the text label to Submitting, please wait...
 

  1. Make a backup copy of your existing index.php file.
     

  2. Open file index.php in a plain text editor, such as Notepad.
     

  3. Inside index.php find the first two occurrences of this code:

    <input type="submit"
     

  4. After this code add:

    onclick="this.disabled=true;this.value='Sending, please wait...';this.form.submit();"

    Remember, do this twice - the first two times you find code in step 3.

    The final code should look like this:

    <input type="submit" onclick="this.disabled=true;this.value='Sending, please wait...';this.form.submit();"
     

  5. Save changes, upload the index.php file to your server and test it.
     

That's it! Now, when your visitors click the "Submit" button when submitting a ticket, the button will be be disabled with the Sending, please wait message until the post is complete.

 
Was this article helpful? yes / no
Related articles How do I submit a ticket in customers' name?
How do I populate "Submit a ticket" form fields?
HESK is not sending any emails
How do I customize HESK text?
How do I disable the captcha (anti-spam) image?
Article details
Article ID: 63
Category: Customization & Integration
Rating (Votes): Article rated 3.6/5.0 (286)

 
« Go back

 
Powered by Help Desk Software HESK, brought to you by SysAid

Help Desk Software