Skip to main content
Solved

How to hide missing address lines

  • April 21, 2022
  • 1 reply
  • 179 views

Forum|alt.badge.img+2

I’m building out a “your order has shipped” email and adding in a section to show the shipping address.  Not all customers have all of the address lines (shipping line 2 being a good example).

 

How can I show that address line for profiles that have it but also not have a blank space for those that don’t?

 

I’m hoping it isn’t a case of building a block for every possible variation of address data held

Best answer by alex.hong

Hi there @bobbob,

Welcome to the Community!

You will need to use the show/hide setting like the following Your Variable != ""​such as for instance event.extra.ShippingAddress.Address2 != “

That way, it will hide the variable for second line of address.

 

Hope that helped,

Alex
 

View original
Did this topic or the replies in the thread help you find an answer to your question?

1 reply

alex.hong
Forum|alt.badge.img+58
  • Klaviyo Alum
  • 1552 replies
  • Answer
  • April 21, 2022

Hi there @bobbob,

Welcome to the Community!

You will need to use the show/hide setting like the following Your Variable != ""​such as for instance event.extra.ShippingAddress.Address2 != “

That way, it will hide the variable for second line of address.

 

Hope that helped,

Alex