How to auto populate fields in a form without access to source code?

  • Profile Image
    Asked on January 05, 2014 at 09:54 AM

    I would like to achieve exactly what's described in this example:

    However, I don't have access to the source code of my site (and probably will not have). It's the large company and those are corporate rules. The only way I can use jot forms is that I get link to jot form created on the main site.

    Hence, I cannot use method described in the example above.

    Is there any other method I can use to achive the same, without touching web site's source code?

    (BTW, my form is here: and I want to copy address fields)

  • Profile Image
    Answered on January 05, 2014 at 01:16 PM


    I think there's no need for you to access your website source codes. You can do this method using your form source codes. You can have the final output as an HTML file. Of course, you'll need to host or upload this HTML file to your server.

    Would you like some help about this method? Let us know. Also, can you confirm if you need to copy address field from "Adresa sjedišta" to "Adresa za primanje pošte" and "Adresa službe za korisnike" if they click the same option?


  • Profile Image
    Answered on January 05, 2014 at 05:03 PM

    I believe this is not possible either. Our company is a big corporation and I have no access to web server. There is a team in charge of web development, maintenance, taking care about brand, colour codes/styles etc. On one page, we have a link to pdf form which potential users print out, sign, stamp and bring to us.
    My intention is to replace pdf form, which is static, with web form (jot form), which produces much better results (hand written entries are not always legible, web forms can implement data validation, can reject submission without required fields, can display help next to each field etc.)
    I can ask for link instead of targeting pdf file to to be targeting with jotform, buth that's about it.
    Nothing more I can ask, as it requires budget for development, taking ownership of the code by web dev team etc. I hope that explains my position and restrictions. Form will never be hosted on our server, it will be on your server and just be linked to from our server. Thank you page will link back to the page with link.

    I need to copy value of field "Adresa sjedišta" to "Adresa za primanje pošte - detalji" (that label is hidden) if check box "Adresa za primanje pošte" "Ista kao i adresa sjedišta" (translated it means Same as adresa sjedišta) is checked
    Additionaly, when those address fields are populated I need to hide them to make form simpler to read, but that part already works.

    Also, I need to copy value of field "Adresa sjedišta" or "Adresa za primanje pošte", depending on the choice with radio buttons "Adresa službe za korisnike" to "Adresa službe za korisnike".
    If it's the third option chosen "Posebna adresa" (separate address), then the fields should be empty so separate address can be populated.
    Ideally, when the previous check box indicating that "Adresa sjedišta" is the same as "Adresa za primanje pošte" is checked, then radio button "Adresa za primanje pošte" should be invisible because there is no need to chose between the two with radio buttons if they are the same.

    Can anything be done, and can I get access to form source if it's on your server and not embedded on our web page?

  • Profile Image
    Answered on January 05, 2014 at 08:45 PM


    can I get access to form source if it's on your server and not embedded on our web page?

    You actually can.  Here is the guide How-to-get-your-Form-Source-Code

    I tried understanding your requirements as much as possibe (I apologize I have to admit its a bit confusing reading those wall of text)

    BUT in idea, you can also create a similar form described by this guide How-to-Enable-Prepopulating-Fields using multiple forms.

    You can use the Custom URL of the Thank You page to open a pre-populated form base from the content of the initial form.

    Here is a test form that does this. It came from the suggestion I had on this thread

    Since you are restricted to use the form's source code and embed it to your own website, it really does limits the customization options you can do on the form.

    You should also take a look for available options in Jotform Apps page ,specifically those in 

    Hope this help in any way. Inform us if there is more we can asist you with.




  • Profile Image
    Answered on January 06, 2014 at 01:00 PM


    Sorry for being confusing.
    To simplify things I translated the form in English and stripped out all the unnecessary fields to create new, test form.
    It's here:
    I believe now it will be much easier to understand what I'm trying to achieve.

    When I select check box "Correspondence address" - "Same as registered address", I would like the entries from correspondence address field to be copied to registered address field

    Similarly, when I use radiobuttons in the next section, when I chose option for customer care address to be same as registered address, I would like registered address entries to be copied to customer care address.
    If I choose option for customer care address to be the same as correspondence address, I would like correspondence address to be copied to customer care address.
    If I chose the third option "other address", then fields unhide and I can enter separate address.

    I checked all the Jotform Apps and neither seems to be doing what I need.
    Also, I took a look at links you suggested, but I couldn't find a solution for my problem.
    Can you please take a look once more.

  • Profile Image
    Answered on January 06, 2014 at 03:43 PM

    Yes, that's correct. There's no need to pass information between the forms.

    The demo you wrote perfectly matches the functionality I need.
    However, I'm not happy with the look and I would like to change it, i.e. I would like to hide the headers "Correspondence with copied" and "Customer Care Address with copied Correspondence" as there's no need for them to be shown. Displaying the address field is controled by check box and radio buttons.
    Also, I don't know how you managed to put text fields one next to other to simulate address field.
    When I put them they are placed one above the other.
    I cannot find the field for picking the country either (like in address field). The one in widgets is not the same as in address field (it's much bigger) so it makes form untidy.

    I put them on the top of my test form to better understand what I'm trying to describe.


  • Profile Image
    Answered on January 06, 2014 at 06:13 PM

    Getting closer... :-)

    I followed your instructions and made most of it work.
    I can make fields copy values of other fields using calculate fields, but what I haven't figured out is how you make it stop copying when you check box "same as registered address".
    The same question is for radio buttons.
    When I set up calculate fields they always copy no matter whether check box is ticked or not.

    I just figured it out.
    But what I don't like is that you made two sections, one with copied values and one without, and you choose which one to display on the screen depending on the checkbox.However, that means that I will always get submitted section with copied data and the one without, which will make it difficult to interpret.
    E.g. one record will have data with copied address and other address, while the other will have copied address and the other address blank blank.

    Additionally, can you help me how to make Post code and City field closer one to other.
    Thanks in advance.

  • Profile Image
    Answered on January 06, 2014 at 11:08 PM

    If you are going to be using the default Email Notification (not Modifying the Email's fileds). You can use the following setting to hide the empty fields:

    Preferences | Advanced Settings | Hide Empty Fields on Emails


    In regards to the repositioning the Post Code and City field together:

    I have injected the follwoing code to my form to reposition said fields:

    #label_69, #label_76, #label_83, #label_89, #label_95, #label_101 {margin-top: -15px;}

    #cid_69, #cid_76, #cid_83, #cid_89, #cid_95, #cid_101 {margin-top: -3px;}

    This is my example form:


    Do let us know if you need further assistance, Thank you.

  • Profile Image
    Answered on January 07, 2014 at 07:42 AM

    Thanks, but it seems that there was a misunderstanding.
    Regarding to spacing, I thought about spacing of Post code and City fields on my form where fields are one next to other and some left or right margin need to be changed.
    BTW, what cid (in #cid_69) stands for.

    Regarding hiding empt fields on e-mails, I cannot test it on your form because for some reason Submit button is hidden, but I think it will not work anyway.

    Here are more details:
    I plan to use form to collect data needed for writing contracts. When I receive data, I plan to export them as Excel table and then mail merge them with Word template (20-ish pages), which contains place holders for fields from Excel (this form).
    Therefore, I cannot mail merge one field once, and the other field the other time, depending if correspondence address is the same as registered address or not.
    I can merge always the same field hence the information needs to be always in the same field.
    Hope this clarifies it a bit.


  • Profile Image
    Answered on January 07, 2014 at 11:02 AM

    Hallo Ardy,

    Thanks for your quick reply.
    Unfortunatelly I cannot host source code on our server. Please take a look at the third post (second mine) from the top for explanation why, so we will have to abandon the route of writing custom script.

    Can you please take a look at my form and see why margins as in example above messed up field placement.
    Even better, can you please explain what #cid and #label elements are so I can experiment with various margin values.

  • Profile Image
    Answered on January 07, 2014 at 03:39 PM

    Thanks on your explanation of the fiels.
    Regarding coping fields, because I need data for mail merging, I cannot
    use the approach you suggested, and because I cannot host source code on
    our web server, I cannot use customized java scripts that you are
    willing to create.
    Therefore, it seems that we came to the end of this road, and I have to
    go back to square one and create separate address fields which users
    will have to manually copy (re-type) if they are the same.
    Regardles that we didn't achieve what we tried to do, I want to thank
    you a lot for trying so hard. On this way I learnt so much.
    I thought that similar features are very common (copying names,
    addresses etc) and already sorted in a way. Even if I have access to
    company's web server, manualy inserting java scripts is not very elegant
    solution, especially for non-programmers.
    Therefore I would suggest one solution to consider.
    I propose to develop one more Condition wizzard like on the list below:
    "Copy or empty form field"

    When you choose it, you should get something like this:

    and you would be able to use it in a number of situations.
    Best regards and thank you once more.

  • Profile Image
    Answered on January 07, 2014 at 05:48 PM

    @ nkasic


    Thank you for your suggestion.

    It will be best if you create separate new thread for this feature request so that we can properly submit it to our higher team support.

    Kindly use this link .

    You can just copy what you have stated here and paste the message to the new thread. Add the appropriate Title/Subject for it.

    We will attend to it when we can.


  • Profile Image
    Answered on January 07, 2014 at 06:01 PM


    Maybe you can try the following workaround, this doesn't involved source code modification. You can use calculation feature to copy data from 1 field to another. Unfortunately, full address field is not supported with the calculation feature so what we have to do is to use regular text box fields for the address fields.


    address 1

    address 2



    You can clone this form to find out the setup.

    If you like this workaround, please refer to the guide below.

    1. First, you have to open calculate wizard to the field you'd like to be populated with.

    2. On the right side, there is a form fields bar that you can use to get the field variables. This is used to populate the selected field. In this example, the home address variable is placed on the billing address field.

    You can do the same for the rest of the fields.

    FYI, the address2 and city field labels are hidden thru CSS Injection, just check it on the form preferences under CSS Inject to view it.

    If you need further assistance, do let us know here. Regards!

  • Profile Image
    Answered on January 07, 2014 at 06:50 PM

    Thanks EltonCris, we already tried using calculated fields, but your suggestion is slightly different as it doesn't have two sections, so it looks promising.

    However, that form doesn't really work as it should.
    When "Same as above?" checkbox is checked, the address section shoud be collapsed, and fields in the background filled with the data from above.
    At the moment it expands when checkbox is checked.
    By the way, what happens if you overwrite value of calculated field during filling form? Will the value at some point revert to calculated value, or will the manualy entered value remain?

    Also, I don't understand the condition you entered:
    If "Billing Address" "is equal to" "Same as above?"
    then "Show" "Billing Address Collapse"

    What field is "Billing address" in the statement and how it can be equal to "Same as above?"
    "Same as above?" is checkbox and that's the only checkbox on the form.
    And I cannot locate two "Billing address" fields that appear in the menu.

  • Profile Image
    Answered on January 07, 2014 at 10:09 PM


    Yes, I just found out it was already suggested by Ardy. =)

    I see I did the opposite thing on the checkbox condition, sorry about that. By the way, you can correct that in the conditions setup, instead of "show" you can changed it to "hide". Anyway, I have updated the demo, I hope it makes sense this time. The manually entered data will remain, FYI.

    I just changed the wording on the checkbox question label to prevent confusion. Go ahead and check it. Let us know if we can be of further assistance.


  • Profile Image
    Answered on January 08, 2014 at 07:33 AM

    Hi EltonCris, 
    This is not bad, the only inconvenience is that when you empty the box and fields reveal, they are filled with data from home address and you need to overtype them.
    Also if somone overtypes them and changes mind and clicks on "Same as above?",  section will colapse and one would asume that the data are copied from above, while actually it's not.
    There is no way, as far as I understand, to link action of copying data with the status of checkbox.

  • Profile Image
    Answered on January 08, 2014 at 11:04 AM

    We are going in circles now, as that was already proposed and dismissed. Please read the whole thread above.

  • Profile Image
    Answered on January 08, 2014 at 11:31 AM


    Like you I also requested this function when I started using Jotform months ago, Although I have the good fortune to alter the source code and it works as you would expect. Trouble is you have to update it whenever you change anything and it also stops you from having the opportunity to pre populate forms with their url method.

    You are going around in circles as although the staff here are very helpful and quick to respond to requests they do not seem to have the time to talk to each other.

    I cannot see why they cannot just add the function to enable copying the placeholder fields to either a single or multiple fields using a conditional logic on a checkbox or radio button, they appear to have most of this in place already.

    Maybe it is best for now to just copy the fields into the second address fields using the placeholders and leave it to the user to over write the second address if is not the same. This is the way I will use for now so that I can use the pre populate method or we do not bother to copy the fields at all and let the user fill in both fields with no method of assisting them until Jotform can figure it out.

    Anyway good luck.



  • Profile Image
    Answered on January 08, 2014 at 11:42 AM

    Hi John,
    It seems that I will have to leave it to the users to copy the fields.
    It's a shame as this is a fairly common feature on forms, and probably could have already been developed the way I proposed for the time we all spent on this and similar threads. 
    Hope that they will develop it soon.
    I hava a couple of other issues too, and as I planned to use these forms in a big company with many rules (logo, fonts, colours, security), I'm doubtfull that I'll be able to make it work.
    We'll see.

  • Profile Image
    Answered on January 09, 2014 at 05:21 AM

    Hi EliezerN,
    I appriciate your willingness to help and I thank you for that.
    However, we reached the limit of the application and you cannot do much about it until new feature is developed.
    I'll have to make my users manually copy data until (and if) that feature is developed. 
    That's the best that can be done for now.
    Best regards!