Viewing 1 replies (of 1 total)
  • Yes. In your CF7 additional settings, enter:

    on_sent_ok: "handleCF7Submit(this);"

    (Note: If I recall correctly, this will be the form object… but I can’t remember)

    Then, in your JS file, define the function:

    function handleCF7Submit(form) {
      $("submit button selector", $(form)).val('SUCCESS!');
    }

    Of course, you’ll need to modify that JS code to make it work, but this should get you going.

Viewing 1 replies (of 1 total)
  • The topic ‘JS hook for form submission’ is closed to new replies.