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.

Gravity Forms Salesforce Escaped Characters

  1. AndrewMoney
    Member

    Hi,

    I am using the "Redirect" method in the confirmation setting of a form and using "Pass Field Data Via Query String". The URL is as follows:

    https://www.salesforce.com/servlet/servlet.WebToCase?encoding=UTF-8&orgid=XXXXXXXXXXXXXXX&retURL=http://www.soapware.com/thank-you-for-contacting-support/&company={Clinic Name:1}&00NC0000005DlXZ={Clinic Zip:2}&name={Contact Name (First):3.3}+{Contact Name (Last):3.6}&phone={Phone:13}&email={Email:4}&00NC0000005DIp0={Account Number:14}&00NC0000005DYC5={Preferred Contact Method:6}&00NC0000005DEzQ={Can you access your records?:7:value}&00NC0000005DF1C={SOAPware Version:8}&00NC0000005DEzf={Requested Department:9}&00NC0000005DEzu={Subject:10}&description={Description:12}&00NC0000005E2vn={Are you a SOAPware Hosting Service customer?:17:value}

    This method works GREAT for sending information to SalesForce. The only problem is if a user types a contraction such as "don't", or "Can't", Gravity Forms replaces the apostrophe with &# 039;. I have ruled out SalesForce as the possible issue simply by submitting a shortened version of the URL above with a static value containing and apostrophe. It created a case in SalesForce with no issues.

    Any ideas?

    Thanks!

    Posted 13 years ago on Thursday September 22, 2011 | Permalink
  2. What happens at Salesforce when the encoded apostrophe arrives?

    Sounds like you might need to process the submitted data before sending the redirect using the gform_confirmation hook.

    Posted 13 years ago on Saturday September 24, 2011 | Permalink
  3. Gravity Forms isn't doing anything improperly. It's best practice to url encode values passed via the query string and that is what you are seeing. It's escaping any non-alphanumeric characters. It sounds like SalesForce isn't handling escaped characters properly when passed via the query string.

    Posted 13 years ago on Monday September 26, 2011 | Permalink
  4. You could consider using the Gravity Forms Salesforce Add-on and see if that works for you.

    Posted 13 years ago on Tuesday September 27, 2011 | Permalink

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