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 transfer data from one form to another before submission and having them open in two separated tabs?

    Asked by Mike H  on March 27, 2014 at 09:24 AM

    I have a form that I have edited the source code for to include some custom JavaScript function to do things like perform calculations and highlight important fields. Depending on what is entered into form A the user may need to fill out form B that will contain a lot of the same information. I have insertaed a link to form B at the bottom of form A that forces it to open in a new tab. I have used this method because I want the user to be able to reference form A when completing form B so it is important that both forms be open at the same time. I want to know if there is some type of JavaScript code that will allow me to tranfer some of the data from form A to form B perhaps with a button click. The user will still need to refference form A to complete form B but some of the feilds will instantly be filled in.

     

    I know JavaScript but have no real knowledge of sever side programming at this point so if there is a JS method for this I would prefer to use that method.

     

    I cannot provide links because these forms are hosted on my companies server.

     

    Thanks,

    Mike

    two forms same source calculations fill same information
  • Profile Image

    Answered by EliezerN on March 27, 2014 at 11:15 AM

    hi,

    We have someworkarounds that will help users to pass data from one form to another, however those workarounds will not allow to pass the data to the second form before submitting the first form.

    However, I think that one of these workarounsd may work for you if we add some more ideas and using some of our form builder features.

    So, this is the workaround I am talking about: How to pass value from one form to another form

    As you can see, it uses URL parameters instead of custom scripts to populate the data in the form fields. As I told you, this workaround will pass/populate the data only after submitting the form, however, since what you need is to allow the form users to compare form A and form B which will have some data that must be the same, then we can use the Edit Link in the Thank You message, which allow the users to update their previous submission and at the same time poste in the thank you message the URL of form B that will contain the parameters that will populate the data of the form A.

    So, I would like to know if this would be OK for you so that I can give you the extended explanation and instructions with demo forms so that you can see how this would work.

    I will wait for your reply.

    Thanks

  • Profile Image

    Answered by Mike H  on March 27, 2014 at 12:58 PM

    Thanks for the response EliezerN.

     

    I considered this method but decided not to go with it. My reason being that there will likely be alert messages sent to various people upon submission of form A and I don’t want to inundate people with emails especially when the process has not yet been completed. Meaning once form A is submitted the people receiving the alert will need to view form A and Form B.

     

    I want to be able to save the textbox inputs as variables and then apply them to the other form but I am far from an expert at JavaScript. I'm not even sure if this is possible.

  • Profile Image

    Answered by Carina on March 27, 2014 at 03:16 PM

    Users will only receive an email after submission if you setup an auto-responder email. Instead, my colleague EliezerN suggested to insert an Edit Link in the Thank You message, so I believe the inundation of people's mailbox won't be a problem. 

    Let us know if this is a solution for you.