What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Can I add a variable from a Form to a URL in a condition?

    Asked by oecc on March 02, 2016 at 02: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

     

     

     

    in a thanks secure. company href
  • Profile Image
    JotForm Support

    Answered by Boris on March 02, 2016 at 05: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.

  • Profile Image

    Answered by oecc on March 05, 2016 at 09:04 AM

    Yes that works!

    Many thanks.

    Robert

  • Profile Image
    JotForm Support

    Answered by Nik_C on March 05, 2016 at 03: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.