Support » Plugin: cformsII » How to disable submit button after click

  • Resolved niccolowmt

    (@niccolowmt)


    Hi,

    I would like to disable the submit button once the user has click on it.
    Sometimes in fact people click from 2 to 10 times to the button, and this generate many different requests/email for the same person.

    Is it possible to do it?
    Thanks,

    Niccolò

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author bgermann

    (@bgermann)

    You can use the JavaScript event cforms2FormSent for this and disable the submit button on the event triggering.

    Hi,

    where and how can I use the JavaScript event? I don’t see it on the backend, do I have to do it on files?

    Thanks

    Plugin Author bgermann

    (@bgermann)

    Yes. You have to get an additional JavaScript file to be registered on the page where your form is. Some themes allow you to insert additional JavaScript in the theme settings which would be the easy way.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.