Hiding "State" input field from Address Question

  • MaidCrew
    Asked on April 9, 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.

  • Mike_G JotForm Support
    Replied on April 10, 2016 at 7:52 AM

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

    Hiding State input field from Address Question Image 1 Screenshot 20

    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.