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

    pass link information into form

    Asked by Charles Nanacsik on August 16, 2011 at 01:44 PM

    For example if I want to send out a form link to a number of people, but customize each email so that the link contains a unique identifier eg: student number which is passed as a non-editable value back into the form (hidden field) when the person receiving the email clicks the link.   Is this possible?  If so, can you indicate how.

    form link email hidden identifier
  • Profile Image
    JotForm Support

    Answered by abajan on August 17, 2011 at 12:03 AM

    Hi Charles

    Thanks for asking. Yes, this is possible but people having knowledge of how URL parameters work will be able to change the information submitted in the hidden field by simply altering the URL.

    Nevertheless, I will explain how it can be done. Let's suppose you're a teacher and the sole purpose of the form was to provide a convenient way for each of your students to submit their completed homework assignments. After giving this some thought, it occurred to me that such a form should actually have two (2) hidden fields instead of one. You'll see the rationale for this later.

    So, the entire form would consist of a heading, a hidden field labelled "Student Name", another hidden field labelled "Student Email", a multi-upload field labelled "Homework Assignment(s)" and a "Submit Form" button.

    Here is what such a form would look to the end user:

    Now that the form has been created, how do we pre-populate the hidden fields? for the form above (click the image to display the live form) assuming you are sending the form to a student named John Doe whose email address is johndoe@example.com, you would type the link in the following manner:

    https://www.jotform.com/form/12275003226?studentName=John%20Doe&studentEmail=johndoe@example.com

    Okay, if you're unfamiliar with URLs that include parameters, some explanation is in order. The first part of the URL (before the question mark) is the address to the form. That which follows the question mark will populate the hidden fields. studentName is the variable name for the Student Name field, the equals sign means "contains" (variables can be thought of as containers) and "%20" is used as code for a space (URLs cannot contain spaces). So we have "studentName=John%20Doe". Lastly, the ampersand (&) is used to separate parameters.

    To discover the correct variable name to use, check the contents of the tags on the Compose E-mail page of the form's notificaton (Setup & Embed tab > Email Alerts > Notification)

    If you wish, clone the form above (in Chrome, right-click the image and then click "Copy link address") change the Recipient E-mail in the notification to your own, save the form and test it.

    Incidentally, in case some students were to manipulate the URL's parameters to make it look like the assignment came from another student, the IP address has been included in the notification. At any rate, whether included in the notification or not, IP addresses of submissions can always be viewed on the submissions page of the form.

    Hopefully you found this reply useful. If you need additional assistance with this or any aspect of our product, please let us know. We always strive to help our users get the most out of their forms.


    ~ Wayne

  • Profile Image

    Answered by jolizzy on March 14, 2012 at 03:03 PM

    Hi Wayne,

    When applying this link to my form, which uses the quick tools "Full Name" field, the link pushes the first and last name into the first name field.  Is there a way to correct this?

    http://form.jotform.us/form/20654907888165?nameOf=Hannah%20Breeding&Of22=10

    In a related question, is there a way to generate the link automatically and paste it into the swimmer registration confirmation email, so that the swimmer can email the link to her pledgers?

  • Profile Image
    JotForm Support

    Answered by abajan on March 14, 2012 at 03:33 PM

    Yes, there is. Since Full Name fields are compound in nature and actually have two inputs, your link would have to be re-written as follows:

    http://form.jotform.us/form/20654907888165?nameOf[first]=Hannah&nameOf[last]=Breeding&Of22=10

    Another compound type field that comes readily to mind is the the (Postal) Address.

    Hope this helps.

  • Profile Image

    Answered by jolizzy on March 15, 2012 at 07:15 PM

    That's great, thanks.  In regard to the 2nd part of my question, is there a way to generate the links automatically and paste it into the swimmer's registration confirmation?  That would keep the flow of information moving, rather than relying on me to process the registrations and generate the links.  This is volunteer work, so not my main priority.  The more automated it is, the more successful we will be (I think) in raising the funds we need.

  • Profile Image
    JotForm Support

    Answered by Mike_T on March 15, 2012 at 07:48 PM

    Yes, it is possible to generate pre-populated links and put them into confirmation autoresponder email.

    Please check the following example.

    1. I have added Full Name field to my registration form.

    2.  Added Autoresponder with the following link inside:

    http://form.jotform.us/form/20654907888165?nameOf[first]={fullName:first}&nameOf[last]={fullName:last}&Of22=10

    http://form.jotformeu.com/form/20747336109352

    If you need any further assistance on this, please let us know.

  • Profile Image

    Answered by jolizzy1 on March 20, 2012 at 12:58 AM

    This almost works.  I am trying to take the swimmer name and length from here

    http://form.jotform.us/form/20772703042142

    and plug them into here

    http://form.jotform.us/form/20772981226154

    via an autoresponder with this link in it:  http://form.jotform.us/form/20772981226154?swimmerName[first]={swimmerName:first}&swimmerName[last]={swimmerName:last}&lengths={lengths}

    The first and last names populate properly, but the length doesn't.  Is it because I have a default set for the length?  Well, no, I just tried removing the default value, and it still didn't populate with the given info.

    Thanks in advance for your help.

  • Profile Image
    JotForm Support

    Answered by liyam on March 20, 2012 at 01:51 AM

    You probably have a typo in your variable {lengths}, you can try checking that again if it's correct. I have checked your form and it seems to capture the {lengths} in the length field properly.

  • Profile Image
    JotForm Support

    Answered by fxr on March 20, 2012 at 04:46 AM

    @jolizzy1

     

    If you have replied to this thread by email, unfortunately we are unable to see your response.

    If it is important, can you please try posting it again onto the thread itself?

     @ http://www.jotform.com/answers/38886-pass-link-information-into-form#8

  • Profile Image

    Answered by jolizzy1 on March 20, 2012 at 04:47 PM

    I was asleep. :)  I got the email responses at 2:00 am my time.

    This doesn't need to be live until the 28th, so I will get back to it as soon as I have time--which is not right now.  Thank you for looking at it!

  • Profile Image
    JotForm Support

    Answered by Mike_T on March 20, 2012 at 05:53 PM

    You are welcome :) Feel free to contact us anytime.

  • Profile Image

    Answered by jolizzy1 on June 07, 2013 at 12:07 AM

    Hello there,  I'm revisiting this form to prepare for this year's event, but I'm having problems with it again.  The link seems to be generating correctly from the first form via the autoresponder:

    http://form.jotform.us/form/20866909725162

     

    http://form.jotform.us/form/20772981226154?swimmerName[first]=Hannah&swimmerName[last]=Breeding&lengths=100&emailOf=***@*** )

    But then when you click on the link it drops the field name into the form instead of the value.  I can't seem to figure out what I'm doing wrong.  Thanks for any help you can give!

  • Profile Image

    Answered by jolizzy1 on June 07, 2013 at 12:57 AM

    I think I figured it out.  Thanks!