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 Part II - Redirect Confirmation

  1. iiworks
    Member

    Hi,

    My question is closely related to the issue described here:
    http://www.gravityhelp.com/forums/topic/gravity-forms-salesforce-escaped-characters
    I am trying to do exactly the same thing as described and ran into the same problem, basically making this route unusable.

    What seems to happen is that both an esc_html as well as an urlencode are applied.
    I tested this by entering a test string in paragraph text for my form and appending this to the query string via the merge in the redirect confirmation.

    A string like : !@#$%^&*()_-+='";:,.
    is sent as: !%40%23%24%25^%26amp%3B*%28%29_-%2B%3D%26%23039%3B%26quot%3B%3B%3A%2C.
    It is received in Salesforce as: !@#$%^&*()_-+='";:,.
    Which means the &, ' and " are not received correctly.

    For a country that is selected (from your country drop down) and included through the merge tag:
    An selected country like Côte d'Ivoire
    is sent as C%C3%B4te+d%26%23039%3BIvoire
    It is received in Salesforce as: Côte d'Ivoire

    I have read the replies on the earlier mentioned post and they basically leave me in limbo. I am not sure if it is appropriate to do this double encode for querystrings, and it clearly not received correctly at the other side.

    If this needs to be solved via further processing through the gform_confirmation hook as suggested then some more information (example) would be appreciated.

    Posted 12 years ago on Thursday February 23, 2012 | Permalink
  2. iiworks
    Member

    I just noted that this post needs a small addendum as the results (because they are html escaped) do not reflect the problem.. remove the spaces to understand what is happening.

    & ' and " end up being & amp ; & #039 ; and & quot ;

    See a full paste of an example here: http://pastebin.com/qRR0ZBKH

    Posted 12 years ago on Thursday February 23, 2012 | Permalink