Auto populate form via URL variable not working.

  • Profile Image
    dbramley
    Asked on July 10, 2011 at 05:38 AM


    Hi,

    I have a form:


    http://www.jotform.com/form/11530401402 and I would like to autofill one of the fields. The field is named

    name="q5_contactFrom" If I use the following: http://www.jotform.com/form/11530401402?q5_contactFrom=TEXTHERE nothing is filled in.

    Am I doing something wrong?

    Thanks

     

     

  • Profile Image
    liyam
    Answered on July 10, 2011 at 08:34 AM

    Hello,

    Thank you for posting your inquiry.

    To prepopulate your form using URL parameters, you will no longer have to include the first few characters of the field name up to the underscore.  So if you have the name of the field q5_contactFrom, you no longer have to include 'q5_', so it will just be 'contactFrom'.  You can try this one out on your form:

    http://www.jotform.com/form/11530401402?contactFrom=test message here

    If you have other questions or concerns, please do not hesitate to start a new post.

    Warm regards,

    Liyam

  • Profile Image
    beachy
    Answered on August 01, 2011 at 12:46 PM

    Is this feature browser dependent?

  • Profile Image
    liyam
    Answered on August 01, 2011 at 04:32 PM

    Hello beachy,

    This works on all browsers.  Are you having an issue making it work on your form?  If so, please tell us more details about issue.

    Thanks,

    Liyam

  • Profile Image
    beachy
    Answered on August 02, 2011 at 10:57 AM

    Hi Liyam,

    Yes I am having issues in FireFox. It seems to work just fine in IE but not in FireFox.

    http://form.jotform.com/form/11985714396?&vendornumber=378143

  • Profile Image
    liyam
    Answered on August 02, 2011 at 01:50 PM

    Hello beachy,

    Thanks for the details.

    I have checked the source of your code, and noticed that you're missing the 57 at the end of the field name parameter.  Please try this one instead:

    http://form.jotform.com/form/11985714396?&vendornumber57=378143

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

    Thanks,

    liyam

  • Profile Image
    beachy
    Answered on August 03, 2011 at 10:11 AM

    This link works in IE but still doesn't work in FireFox:

    http://form.jotform.com/form/11985714396?&vendornumber57=378143

  • Profile Image
    liyam
    Answered on August 03, 2011 at 10:15 AM

    Hello beachy,

    I'm sorry about this.  I forgot that the field names for URL parameters are case sensitive.  So it should be http://form.jotform.com/form/11985714396?vendorNumber57=378143

    Warm regards,

    Liyam