Can you remove the second line of the Address field

  • SewGoodca
    Asked on September 13, 2015 at 12:31 PM

    I would like to have the "Street Address line 2" removed from my form. I find it confuses people and they put the city  there by mistake and then

    the postal code won't work. The error message does not show the actual error. It just says the postal code is invalid. 

    I had a customer complain that it wouldn't take her correct postal code. I went and tried it and I made the same mistake. 

    I have attached a screen shot below. 

    Thanks!

    Jotform Thread 661178 Screenshot
  • Ashwin JotForm Support
    Replied on September 14, 2015 at 1:07 AM

    Hello SewGoodca,

    Please inject the following custom css code in your form to remove the address line 2 of your form:

    input#input_54_addr_line2 {

        display: none;

    }

    label#sublabel_54_addr_line2 {

        display: none;

    }

    The following guide should help you how to inject custom css code in your form:  https://www.jotform.com/help/117-How-to-Inject-Custom-CSS-Codes 

     

    I have moved your question related to postal code to a new thread and you will be answered here:  http://www.jotform.com/answers/661387

    Thank you!

  • SewGoodca
    Replied on September 14, 2015 at 4:47 PM
    Thank you so much! It worked like a charm.
    Regarding the question about the Postal Code…it was actually related to the problem with the second line in the address field.
    When the city it mistakenly entered into the address line 2 field the error did not show up until you entered the postal code. So in the screen shot I attached the error was not the Postal Code, it was the City being placed in the wrong field.
    ...
  • Chriistian Jotform Support
    Replied on September 15, 2015 at 12:10 AM

    On behalf of my colleague, you are welcome. You are right the error displayed on the screenshot you provided is because the City is a required field and the in your screenshot it is empty so the error was displayed. I can also see that one of my colleague on your other thread also suggested a solution on how to remove the Street Address Line 2. If you have any further question, please feel free to contact us again.