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

    Unable To Prepopulate using URL with Form Fields Having Almost the Same Name?

    Asked by UtiliSync on February 03, 2015 at 06:39 PM

    Here is something strange I just came across.  I have two fields in a form.  One is named "personnel01"  and one is named "personnel01num".  I want to prepopulate the fields using the URL.  It works fine personnel01 appears first in the form, but if personnel01num appears first in the form, the other field won't populate.  Why is that?

    Here is a link to the two test forms I setup so you can see it for yourself:

    http://form.jotformpro.com/form/50337461821956?personnel01=P1&personnel01num=1

    http://form.jotformpro.com/form/50337420869963?personnel01=P1&personnel01num=1

    The easy answer here is to rename the fields, but I have a more complex form setup and I hoping to avoid renaming the field.

    complex form and form setup setup
  • Profile Image
    JotForm Support

    Answered by Charlie on February 03, 2015 at 09:01 PM

    Hi,

    I believe this is a specific case where when a number field and another field almost has the same name, the URL does not detect properly which one to populate, here's an example: http://form.jotformpro.com/form/50337493663965?field01num=1&field01=P1 

    Field 1 has name "field01num" while field 2 has name "field01". You actually don't need to rename the whole part, just avoid using part of the field name without any additional text on it. Example, to solve the problem in my end, I'll just add more text on the name of the "field01" to "field01text". That should fix the problem without renaming the whole name.

    I hope this helps.

    Thank you.