• Garrett Hyder

    (@garrett-eclipse)


    Hello,

    While testing the mapping I found that not all of the Form information is populated before pushing to Salesforce.

    Below is a full list of available Form Information and their datacodes;
    Entry ID – {id}
    Entry Date – {date_created}
    User IP – {ip}
    Source Url – {source_url}
    Form Title – {title}

    The Form Title and User IP get translated during the mapping process but the rest come through as their datacode, so in Salesforce I can see instead of values the datacodes;
    {id}
    {date_created}
    {source_url}

    Please fix the mapping to replace these datacodes on translation to their appropriate Form Information values.

    Thanks

Viewing 1 replies (of 1 total)
  • Thread Starter Garrett Hyder

    (@garrett-eclipse)

    To workaround this issue I’ve used the gf_salesforce_push_data filter to lookup the Form Information and replace the id, date_created and source_url datacodes.

    function gf_salesforce_update_data($merge_vars, $form, $entry) {
        // Populate Missing Form Information
        foreach ( $merge_vars as $merge_key => $merge_value ) {
            switch( $merge_value ) {
                case '{id}':
                    $merge_vars[$merge_key] = $entry['id'];
                    break;
                case '{date_created}':
                    $merge_vars[$merge_key] = $entry['date_created'];
                    break;
                case '{source_url}':
                    $merge_vars[$merge_key] = $entry['source_url'];
                    break;
            }
        }
        return $merge_vars;
    }
    add_filter( 'gf_salesforce_push_data', 'gf_salesforce_update_data', 10, 3 );

    Hope that helps someone else while the plugin author works on a fix.

    Cheers

Viewing 1 replies (of 1 total)
  • The topic ‘Bug – Form Info isn’t populated (ID, Date Created, Source URL)’ is closed to new replies.