• Hi Nick – Curious if it is possible to pass data from a mailchimp string to pre-populate Brilliant form fields?

    Desired Use scenario = Export list from salesforce for import to Mailchimp list. Create email template and include data (first name, last name, email, phone) in string. Include call to action button that links to Brilliant form. When user receives email, clicks on action button which loads site with Brilliant form and fields are pre-populated with data above.

    Appreciate your direction.

    Gary

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

    (@nickciske)

    You can, with filters. There’s no UI or merge tags for this at present.

    Thread Starter garymull

    (@garymull)

    Thanks Nick – possible you could elaborate?

    Plugin Author Nick Ciske

    (@nickciske)

    Here’s the code example from the ReadMe:

    
    // Autofill fields based on thew query string (using Google Analytics tracking variables in this example)
    
    add_filter( 'salesforce_w2l_field_value', 'salesforce_w2l_field_value_querystring_example', 10, 3 );
    
    function salesforce_w2l_field_value_querystring_example( $val, $field, $form ){
    
        $form_id = 1; // form id to act upon
        $field_name = 'source__c'; // API Name of the field you want to autofill
        $qs_var = 'source'; // e.g. ?source=foo
    
        if( $form == $form_id && $field_name == $field ){
            if( isset( $_GET[ $qs_var ] ) ){
                return $_GET[ $qs_var ];
            }
        }
    
        return $val;
    
    }
    
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Pass Mailchimp data to Brilliant Forms’ is closed to new replies.