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.

Post data from a form

  1. reddishpink
    Member

    hey guys been reading articles on posting data. Can someone help me with this?

    I have a form and set it to pass field data
    I need to post it to a payment site. They provided me with a form example like this:
    Any ideas how I can pass my data from Gravity forms to this form?

    <form name=”post” method=”post”
    action=”https://secure.emandates.co.uk/Pages/Registration.aspx?.Client=e90057aa-51e6-4eb2-a36b-
    897c1439a5f4&.PaymentPlans=874fe40b-dfef-4ec8-a4a8-e895e84dc59e”>
    <input type=”text” name=”txtTitle” value=”Mr” />
    <input type=”text” name=”txtFirstName” value=”John” />
    <input type=”text” name=”txtSurname” value=”Doe” />
    <input type=”text” name=”txtReference” value=”MYREF00001” />
    <input type=”text” name=”addr1” value=”1, The Example Road” />
    <input type=”text” name=”addr2” value=”Example Town” />
    <input type=”text” name=”addr3” value=”Example City” />
    <input type=”text” name=”searchPostCode” value=”T35T 1NG” />
    <input type=”text” name=”txtPhone” value=”0190 908070” />
    <input type=”text” name=”txtEmail” value=”test@example.co.uk” />
    <input type=”text” name=”txtAccNumArr” value=”0-0-0-0-0-2-8-4” />
    <input type=”text” name=”txtSortArr” value=”08-09-08” />
    <input type=”text” name=”txtAccountHolders” value=”Mr. John Doe” />
    <input type=”text” name=”txtRegularAmount” value=”35.45” />
    <input type=”text” name=”end” value=”until_notice” />
    <input type=”text” name=”lstPaymentDay” value=”1” />
    <input type=”text” name=”PaymentMonth” value=”4” />
    <input type=”text” name=”PaymentYear” value=”2013” />
    </form>

    Posted 11 years ago on Tuesday April 9, 2013 | Permalink
  2. reddishpink
    Member

    I tried this article but not sure how to apply the form code above to it - http://www.gravityhelp.com/forums/topic/cant-find-any-instructions-to-post-form-data-to-external-url

    Posted 11 years ago on Tuesday April 9, 2013 | Permalink
  3. It would be something like:
    https://secure.emandates.co.uk/Pages/Registration.aspx?.Client=e90057aa-51e6-4eb2-a36b-
    897c1439a5f4&.PaymentPlans=874fe40b-dfef-4ec8-a4a8-e895e84dc59e&txtTitle=”Mr”&txtFirstName=”John”&
    .......&
    PaymentYear="2013"

    But all the hard coded values I typed in would be the filed names on your form. You would then put this ghastly URL in the form properties in the confirmation tab, choose redirect. Put your URL https://secure.emandates.co.uk/Pages/Registration.aspx?.Client=e90057aa-51e6-4eb2-a36b-
    897c1439a5f4&.PaymentPlans=874fe40b-dfef-4ec8-a4a8-e895e84dc59e

    And then click the check box Pass field values via query string and build the keyword={fieldid:3} parameter string using the merge field data drop down.

    Example.
    phone={Phone:1}&email{Email:2}

    Not sure if this will work, but that is what this feature is meant to do.

    Posted 11 years ago on Wednesday April 10, 2013 | Permalink
  4. reddishpink
    Member

    Thank you! Ill give that a try.

    Posted 11 years ago on Wednesday April 10, 2013 | Permalink
  5. reddishpink
    Member

    So in the case above how to I map my fields to the fields of the recipeint form?
    In the case of phone - they form uses (txtPhone)
    So would I use
    txtPhone={Phone:1} in the query string?

    Posted 11 years ago on Wednesday April 10, 2013 | Permalink
  6. I can't say exactly since I can't see your form design, but yes if their parameter is txtPhone, you would type in:

    txtPhone=

    and then hit the merge field drop down menu and select the form parameter for the phone number. It will look something like what you have:

    txtPhone={Phone:1} then type &txtFirstName= and then hit the drop down menu to insert your form field for the first name (probably something like {Fname:3}

    Don't forget to add an ampersand & after each keyword={formparam:#)

    Slowly you will build a URL contains all your keyword={formparam;#} parameters. It will be tedious, but should work.

    Posted 11 years ago on Wednesday April 10, 2013 | Permalink
  7. reddishpink
    Member

    Thank you, that works!

    Posted 11 years ago on Thursday April 11, 2013 | Permalink
  8. I have a similiar form... But I need to add a <input name="hash" value="{MD5HASH}" /> so it also gets passed to the new URL. I've seen http://www.gravityhelp.com/forums/topic/cant-find-any-instructions-to-post-form-data-to-external-url and I think that would work, but then I would have the issue that this form will be duplicated and its id won't be always the same.

    Posted 11 years ago on Friday April 12, 2013 | Permalink