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

  • Profile Image
    nrasmus
    Asked 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
    NeilVicente
    Answered 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
    nrasmus
    Answered 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
    NeilVicente
    Answered on May 07, 2014 at 07:00 PM

    Unfortunatley, there is no way around this.

    Sorry about that.