WordPress.org

Forums

Fast Secure Contact Form
[resolved] Disable Submit button after click (13 posts)

  1. nicola.stufano
    Member
    Posted 1 year ago #

    Hi to all,
    there is a solution to my request?
    I want to disable Submit button after click, to prevent double click on button.
    It is possible?

    https://wordpress.org/plugins/si-contact-form/

  2. mbrsolution
    Member
    Posted 1 year ago #

    Hi nicola.stufano are you asking this question because you have had the same form submitted twice?

    Regards

  3. nicola.stufano
    Member
    Posted 1 year ago #

    Yes. Users click 2 times on Submit button when server need more seconds to response.
    Can you explain me ALL STEPS I need to do this?

  4. mbrsolution
    Member
    Posted 1 year ago #

    Hi, as far as I know there are no options available within the plugin to set up this type of rule. What you can do is go to Advanced settings and enable the following.

    • Enable an "Are you sure?" popup for the submit button.

    The above will give the server enough time to submit the form and eliminate the clicking on the submit button twice.

    You can also add some information above this field to remind those submitting the form to only click once and allow a few seconds.

    Kind regards

  5. nicola.stufano
    Member
    Posted 1 year ago #

    Yes, but I see that it is possible using JQuery. Do you know? I try your solution, and I inform you.

  6. nicola.stufano
    Member
    Posted 1 year ago #

    Ok,
    I change a parameter into FSCF.

    I add, in Advanced, Advanced Form and Email Settings, Submit button input attributes this command:
    onClick="this.disabled=true; this.value='Invio in corso…'; this.form.submit();"

  7. mbrsolution
    Member
    Posted 1 year ago #

    Hi nicola.stufano did that solve your issue?

  8. nicola.stufano
    Member
    Posted 1 year ago #

    I suppose.
    I'm doing some test to verify full functionality

  9. mbrsolution
    Member
    Posted 11 months ago #

    Hi nicola.stufano has your issue being resolved?

    Thank you

  10. Mike Challis
    Member
    Plugin Author

    Posted 11 months ago #

    Your onclick code does work but only when the "Are you sure?" setting is not enabled

  11. nicola.stufano
    Member
    Posted 11 months ago #

    Yes, My onlick code is fully functional without "Are you sure?" setting

  12. mbrsolution
    Member
    Posted 11 months ago #

    Hi nicola.stufano I am happy to hear that your code is working well for you. Well done :)

  13. Mike Challis
    Member
    Plugin Author

    Posted 11 months ago #

    I have added this feature in a new version I will release tomorrow.

    There will be a new setting on the Advanced tab
    "Enable to prevent double click on submit button."
    it will be enabled by default.

    This setting disables the Submit button after click, to prevent double
    click on button. Also prevents going back and submit the form again.
    Note: this setting is ignored if the "Are you sure?" popup for the
    submit button is enabled, or when you have filled in the Submit button
    input attributes setting with a "onclick" attribute.

    Mike

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Fast Secure Contact Form
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic