Solved

How to hide missing address lines

  • 21 April 2022
  • 1 reply
  • 129 views

Badge +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

icon

Best answer by alex.hong 21 April 2022, 23:58

View original

1 reply

Userlevel 7
Badge +58

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
 

Reply