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

    Hiding "State" input field from Address Question

    Asked by MaidCrew on April 09, 2016 at 11:30 PM

    I wish to hide the US State & the Country fields within the Address Grouping/Question.

     

    I've disabled the Country field by opting for the US States field, but I don't even wish to see the State Field either.  Is there at way to not have it show since all addresses will be the same state (Virginia - VA).  I'm wanting to have the Zip / Postal Code field move up & take the State field's place.

    Thank You,

    Shawn Mc.

    Page URL:
    https://form.jotform.com/60994889073171

  • Profile Image
    JotForm Support

    Answered by Mike_G on April 10, 2016 at 07:52 AM

    To hide the state field here's what  you need to do.

    After that, to position the Zip Code field beside the City field, you can add the CSS code below to your form. How-to-Inject-Custom-CSS-Codes

    .form-address-table tr:nth-child(n+3) span, .form-address-table tr:nth-child(n+3), .form-address-table tr:nth-child(n+3) td:nth-child(1){

    width: 50% !important;

    display: inline !important;

    }

    .form-address-table tr:nth-child(n+3) input{

    width: 170px !important;

    }

    .form-address-table tr:nth-child(4) input{

    float:right !important;

    }

    Here's a clone version of your form where I have applied the changes.

    https://form.jotform.com/61003138807953

     

    I hope this helps. Let us know if you need any further assistance. Thank you.