Send data when form has been send successfully instead of on click

Hi Guys,

I’m not at all familiar with scripts or Gravity forms, but I’m trying to send form data to my CRM.

This code works fine, but it will send the data when I click the submit button,
$( “#gform_15” ).submit(function( event ) {

So I tried this, by Googling and reading, but as I don’t understand the whole I guess it’s either a simple question/change or I’m totally looking in the wrong corner.

jQuery(document).on(‘gform_confirmation_loaded’, function(event, formId){
if(formId == 15) {

I hope someone can point me in the right direction.

Thanks in advance.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.

You might want to look at gform_after_submission instead. Or depending on your CRM there may be an add-on to do it without code such as HubSpot.