Forum Replies Created

Viewing 1 replies (of 1 total)
  • Can you explain a little more how to use this code?

    I put it in the functions file and set the lead source as “Website” and when my site loaded it was a blank screen.

    The code I included:

    add_filter('gf_salesforce_lead_source', 'make_my_own_lead_source', 1, 3); 
    
    function make_my_own_lead_source($lead_source, $form_meta, $data) {
    	// $lead_source - What was about to be used (normally Gravity Forms Form Title)
    	// $form_meta - Gravity Forms form details
    	// $data - The data passed to Salesforce
    
    	$lead_source = 'Website'
    
    	return $lead_source;
    }

    Thanks for your help.

Viewing 1 replies (of 1 total)