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

    Hi, is there a way to collapse "addr_line2" when it's null?

    Asked by nrasmus on May 07, 2014 at 03:15 PM

    Hi, is there a way to collapse "addr_line2" when it's null?



    This is a re-post of a comment on How to Strip Headers from Postal Addresses in Email Alerts

  • Profile Image
    JotForm Support

    Answered by NeilVicente on May 07, 2014 at 05:20 PM

    Hello,

    Can you please provide more details regarding your question?

    Do you perhaps want to the "Street Address Line 2" text to not display when there is no value? If so, the answer is no, you cannot hide it.

    That's what the strip header from postal address guide is for.

  • Profile Image

    Answered by nrasmus on May 07, 2014 at 05:26 PM

    Sorry, I have a custom email alert that prints addresses thus:

    {yourName}
    {address5:addr_line1}
    {address5:addr_line2}
    {address5:city}, {address5:state}  {address5:postal}
    {phoneNumber6}
    {emailAddress}

    But if there is no Address Line 2 entered in the form by the user, then there is a blank space in the email between addr_line1 and City, State  ZIP which I'd like to avoid.

  • Profile Image
    JotForm Support

    Answered by NeilVicente on May 07, 2014 at 07:00 PM

    Unfortunatley, there is no way around this.

    Sorry about that.