-
oeccAsked on March 2, 2016 at 2:36 PM
This is the URL I send to the payment company. It works fine.
https://payments.secure.net/payments/choice?=GBP&version=1&mainamount=110.00
I would like to add a variable field value for each person that registers. JRREF
https://payments.secure.net/payments/choice?=GBP&version=1&mainamount=110.00&reference=JRREF
This needs to be added to the end of the URL as &reference=JRREF
How can I add this variable for each submission?
Thanks
Robert
-
BorisReplied on March 2, 2016 at 5:47 PM
Yes, you can add URL parameters to the thank you URL of your form. You can do this either to all form submissions, or by using a condition to only add it in some cases.
http://www.jotform.com/help/211-Setting-Up-the-Thank-You-Page
To do it conditionally, based on a field selection or entry on your form, you can use conditional logic with "change thank you page" rules.
From what I understand, the value will be static. All customers who fill out the form will be using the &reference=JRREF, and the JRREF value will not be changing on the form. Is this correct?
If that is so, simply set your form's Thank You URL to your desired one:
If you will be using a variable value, such that not every customer will use JRREF as its value, you can also forward any value from your form by suing its name tag:
http://www.jotform.com/help/146-How-to-find-Field-IDs-Names
For example, a form field with name {reference} could forward its value in a link such as this:
https://payments.secure.net/payments/choice?=GBP&version=1&mainamount=110.00&reference={reference}
Please let us know if you need further assistance, we will be happy to help.
-
oeccReplied on March 5, 2016 at 9:04 AM
Yes that works!
Many thanks.
Robert
-
Nik_CReplied on March 5, 2016 at 3:16 PM
Hello Robert,
On behalf of my colleague Boris, you're welcome.
Do not hesitate to contact us for any question you have.
Best regards.