PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

GF To SalesForce Campaign_ID Not Working

  1. AndrewMoney
    Member

    Hi,

    Hope I make enough sense :P. I have built a form with Gravity Forms and set the confirmation settings to "Redirect" and "Pass Field Data Via Query String" and built my query string accordingly, to send the data into SalesForce as a lead. The only field I am having an issue with is a field called "How did you hear about "Company"?. It is a drop down list with options of how the potential customer heard about us. This field should set the Campaign in SalesForce associated with the lead. It is not setting Campaign. I have done some testing myself and I know that "{How did you hear about "Company"?:1}" in the query string is being replaced with the "inner text" of the drop down field instead of the "value", which is an ID of the campaign that correlates to the "inner text".

    Example:
    <option value="701C0000000gRQQ">Medens</option>
    <option value="701C0000000gRQa">IBM</option>
    <option value="701C0000000gRQf">Trade-show</option>
    <option value="701C0000000gRQk">Client Referral</option>

    In the query string, "Campaign_ID={How did you hear about "Company"?:1}", should output the "value" of the <option> element instead of the <innerText>

    Thanks,

    a

    Posted 12 years ago on Tuesday August 30, 2011 | Permalink
  2. AndrewMoney
    Member

    To clarify, SalesForce takes the Campaign_ID (e.g. 701C0000000gRQQ) and does a lookup to set the Campaign. So, if it is receiving a string (e.g. Medens), the lookups in SalesForce will return null everytime.

    Posted 12 years ago on Tuesday August 30, 2011 | Permalink
  3. Try it like this to get the value:

    Campaign_ID={How did you hear about "Company"?:1:value}

    Posted 12 years ago on Tuesday August 30, 2011 | Permalink
  4. Now modify the merge code so that it gets the value and not the label by adding :value to the merge code. Example: http://grab.by/a5nZ

    From here:
    http://www.gravityhelp.com/forums/topic/routing-based-on-field-value#post-25098

    Posted 12 years ago on Tuesday August 30, 2011 | Permalink
  5. AndrewMoney
    Member

    THANK YOU!!

    Posted 12 years ago on Tuesday August 30, 2011 | Permalink
  6. Great. Glad you were able to resolve the issue.

    Posted 12 years ago on Tuesday August 30, 2011 | Permalink

This topic has been resolved and has been closed to new replies.