Support » Plugin: Brilliant Web-to-Lead for Salesforce » Will the plugin work with the new SF

  • Resolved Ron22

    (@ron22)


    Hi
    With SalesForce new update to Web-To-Lead urls – will the plugin still work?
    We use Version 2.6.6

Viewing 6 replies - 1 through 6 (of 6 total)
  • Plugin Author Nick Ciske

    (@nickciske)

    2.6.6 will not.

    2.7.3+ will.

    Why haven’t you upgraded?

    Thread Starter Ron22

    (@ron22)

    As for your advice ( a while ago over a year), I have added this to the function file to handle ‘date received’ field. So I didn’t want to loose this functionality.

    // Autofill a date
    // https://codex.wordpress.org/Function_Reference/current_time
    // http://php.net/manual/en/function.date.php

    add_filter( ‘salesforce_w2l_field_value’, ‘salesforce_w2l_field_value_date_example’, 10, 3 );

    function salesforce_w2l_field_value_date_example( $val, $field, $form ){

    $forms = array( 1,2,3,4,5 ); // form ids to act upon
    $field_name = ‘Date_Received__c’; // API Name of the field you want to auto check

    if( in_array( $form, $forms ) && $field_name == $field && ! $_POST ){
    //echo ” Today is: “.date(‘d/m/Y’);
    return date(‘d/m/Y’); // or whatever date format you want
    }

    return $val;
    }

    Thread Starter Ron22

    (@ron22)

    Will I still need this code snippet after I update?

    Plugin Author Nick Ciske

    (@nickciske)

    Yes.

    Thread Starter Ron22

    (@ron22)

    Just to make sure:
    All I need to do is click ‘update’ for the plugin and leave the snippet as it is. Right?

    Plugin Author Nick Ciske

    (@nickciske)

    Yes

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Will the plugin work with the new SF’ is closed to new replies.