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

    How can I set a default value for City and State in the Address quick field?

    Asked by zenhome1123 on December 06, 2010 at 03:21 PM

    I was able to set the default country but am wondering how to set default city/state values for the Address "quick field".  My business services clients only in New York, NY and I'd like to have this info already in there when the form loads.

  • Profile Image
    JotForm Founder

    Answered by aytekin on December 07, 2010 at 01:00 PM

    Get full form source code, paste it on your web site and then change the value for the city and state fields.




    To get full form source code open the form on the Form Builder:
    1. Open "Publish" tab on toolbar,
    2. Click on "Embed" tab
    3. Select "Source Code" from the dropdown



    To get full form source code open the form on the Form Builder:

    1. Open "Setup & Share" tab on toolbar,
    2. Click on "Share Form"
    3. Click on "Advanced Options"
    4. Click on "Full Source Code".

  • Profile Image

    Answered by roguerobot on June 27, 2011 at 06:12 AM


    Is it possible for you to build the ability to have default values into all the fields?

    I want to use the forms as a production agreement. Ideally, I'd fill in the majority of the form, use the email function to send it to the client, then they can add details or amend what I've written before sending it back. As it stands, I'm unable to input default values into address or date fields so I cannot, for example, input deadlines and so on.

    It'd be great if this were possible.


  • Profile Image
    JotForm Support

    Answered by NeilVicente on June 27, 2011 at 08:20 PM


    It is possible to prepopulate the fields that do not have a default value option by using url query strings.

    Take this form url for example: http://www.jotform.com/form/11651919153?address36[addr_line1]=36%20Maple%20Dr.&address36[addr_line2]=Kenwood%20Park&address36[city]=Cambridge&address36[state]=Hogwart&address36[postal]=11539&address36[country]=United%20States&date[day]=28&date[month]=June&date[year]=2011

    As you can see, it is quite pretty long as I have inserted default values in the url itself. Click here to learn how I implemented this solution.

    Let me know if you run into any difficulties while using this solution. Feel free to search or ask around the forum if you have more questions or concerns.


  • Profile Image

    Answered by eriediocese on April 13, 2016 at 03:17 PM

    Can this thread be updated so the instructions match your current interface?