Support » Plugins » Who can help me hack this Gravity Forms plugin?

  • Hi all,

    So I have the Salesforce plugin for Gravity forms for WP.

    http://wordpress.org/extend/plugins/gravity-forms-salesforce/

    Basically, its set up to submit the form data to Salesforce as a ‘Lead’. I want to submit it as a ‘Case’.

    I believe I can do this by changing one line of code, however I want to have the option to submit as a ‘Lead’ also. For this I need some way to switch between the two. Perhaps via an id in the shortcode that calls the form?

    Here is the code I want to change:

    $sub = $debug ? 'test' : 'www';
    
    #		echo '
    <pre>'; print_r($args); die();
    
    		$result = wp_remote_post('https://'.$sub.'.salesforce.com/servlet/servlet.WebToLead?encoding=UTF-8', $args);

    I want to have an option to change this to:

    salesforce.com/servlet/servlet.WebToCase?encoding=UTF-8

    Any help would be very much appreciated.

  • The topic ‘Who can help me hack this Gravity Forms plugin?’ is closed to new replies.