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

  • UtiliSync
    Asked on February 3, 2015 at 6: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.

  • Charlie
    Replied on February 3, 2015 at 9: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.