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

    prepopulating of fields will not work when you use ?session parameter

    Asked by technologypainkillers on June 17, 2013 at 10:55 AM

    I'm using the 2-step work around recommended in one of your how-to guides.

    The first form takes the email address in order to send an autoresponder email (and notification email), then sends them a link to a 2nd form for them to complete the application.

    Do I have to just ask for their email again, or is their a way to add a field with their email address to the 2nd form's query string so that the new form will pick it up from the previous form?

    Thank you, in advance, for your coaching.

    Respectfully,

     

    Mike Strong

    one form new form autoresponder email email query string
  • Profile Image

    Answered by EliezerN on June 17, 2013 at 01:17 PM

    Hello Mike,

    It is not necessary to ask for the email again, you can do a workaround. It is to insert the link of your second form to a Thank You Message.

    To accomplish that please do the next

    1- Go to Setup&Embed

    2. Click on Thank You button

    3. And choosthe Thank You message option

     

    In the Thank You Message body,  insert the link of your fom , for my example shown in the screent is

    https://www.jotform.com/form/31674789411866?email3={email4}

    I basicly inserted the link of the Second Form and followed by ? and the email variables for the first and second form, as explained on this picture

    To find out the variables of both email fields:

    FIRST FORM:

     

    SECOND FORM: Just grab what it is between { }

    So in my case is

    https://www.jotform.com/form/31674789411866?email3={email4}

     

    -Finally save your settings and test your form.

    You can clone my form to have an example: https://www.jotform.com/form/31397027689870

    I hope this heps.

    Thanks!

  • Profile Image

    Answered by technologypainkillers on June 17, 2013 at 01:48 PM

    Awesome! Thank you!

  • Profile Image

    Answered by technologypainkillers on June 18, 2013 at 05:22 PM

    Hi!  Here is a video of my attempting to implement your advise.  Pardon me, for missing something, but I'm old.  :)

    You guys are great.

    Regards,

    Mike Strong

  • Profile Image
    JotForm Support

    Answered by EltonCris on June 18, 2013 at 06:23 PM

    Hi Mike,

    Thanks for the video, that explains everything. I just finished watching it and you've explained it clearly. May we suggest now to please set the video to private or take it out from youtube if it's ok since it might affect a little of our reputation due to the tittles used. Thank you in advance.

    Going back to the main problem, I see many reasons why prepopulating of fields not working with your form.

    1. You are using comma when separating fields on the URL, it should be "&" symbol.

    e.g. email={email}&name={name}

    2. There are three fields to populate here since full name has two fields. These are the correct queries for your form.

    fullName143[first]={fullName9:first}

    fullName143[last]={fullName9:last}

    emailAddress={email11}

    If you're wondering where these names are taken from e.g. fullName143[first], here's a guide:

     

    3. Lastly this would be the downside here, session e.g. session=test@email.com can't work with prepopulation so everything would be useless.

    Here's an explanation:

    This should now be the correct URL query structure. This works because it doesn't have session paramater in it, please check the form below. You should be able to view the tags e.g. {email11} populated on this form.

    http://www.jotform.us/form/31546211072140?fullName143[first]={fullName9:first}&fullName143[last]={fullName9:last}&emailAddress={email11}

    However, if you add the session,  it won't work.

    http://www.jotform.us/form/31546211072140?session=test@email.com&fullName143[first]={fullName9:first}&fullName143[last]={fullName9:last}&emailAddress={email11}

    Now therefore, if you are going to use session, you don't have to prepopulate fields else it won't work however if you are just to populate fields to the second form, you should take out the session parameter. Like I've said, they can't work together.

    Hope I have informed you well. If you still have difficulties understanding with any of the information above, please let us know. Thank you!

  • Profile Image

    Answered by technologypainkillers on June 18, 2013 at 06:38 PM
    Thank you, yet again, for your *amazing support*!
    I set the video link to private as you requested; however, be assured that
    it was always only in "unlisted" mode before, not public. So, it was never
    discover-able through search. Still, I've made it private, as you asked.
    So, I'm confused about the session then. Why was it needed in the first
    place?
    Please, forgive my confusion. I'm old. :)
    Mike
    Mike Strong, President
    Technology Pain Killers, LLC
    512-636-6344
  • Profile Image
    JotForm Support

    Answered by EltonCris on June 18, 2013 at 06:55 PM

    Hi Mike,

    Super! Thanks Mike, that's appreciated!

    That's needed if you are just to use save forms and continue later feature but it's not designed to work with prepopulation currently. Let me address this to our developers so they can take a look at this but it may not be prioritized and may not be implemented in a short period of time so please take out the prepopulation URL parameters as for now since they won't work.

    Thanks and apologies for any inconveniences caused.

  • Profile Image
    JotForm Support

    Answered by EltonCris on June 23, 2013 at 11:59 PM

    @Mike,

    Regarding on the prepopulation + session, I have been informed by one of developers that this wont be possible. Both can't work together due to the fact that session has a higher priority than GET URL parameters. Session retrieves the data including empty ones so whatever parameter used in the URL for prepopulating the fields will be overwritten by session data.

    Hope this clarifies your concern. Thank you!

  • Profile Image

    Answered by technologypainkillers on June 24, 2013 at 12:03 AM
    Yes, it does. Thank you, for the explanation.
    Mike Strong, President
    Technology Pain Killers, LLC
    512-636-6344
  • Profile Image
    JotForm Support

    Answered by liyam on October 08, 2013 at 06:42 AM

    Thank you for your patience, Mike.

    We have now fixed the issue on session parameters overwriting the other URL parameters.  Feel free to test your form and let us know if you encounter any other problems.

    If you have other questions or concerns, please do also let us know.

    Thanks.