Inserting the address block

Hi, I am trying to make things simple and use the Insert → Address Block. When I do this my address line2 is on the same line as my address line 1. Is there a way to fix this? I uploaded a screenshot of my results. I need to have ‘Test address line’ to be located under the ‘PO Box 240’ line.

Thank you

Hello @ahaddad,

You may want to create a custom address format for that.

Example

Handlebars template

C:\ProgramData\Objectif Lune\OL Connect\Address Blocks\Custom.hbs

{{#if OLC01Street}}
	<p>{{OLC01Street}}</p>
{{/if}}
{{#if [OLC02Secondary address identifier]}}
	<p>{{[OLC02Secondary address identifier]}}</p>
{{/if}}

Result

1 Like

Hello @ahaddad,

In the United States address block setup the ‘secondary address identifier’ and the secondary address number’ are intended for references to rooms or apartments in buildings. These always require to be listed on the same line as the ‘street’. That is reason they don’t appear on a new line.

I am not quiet sure what you are intending to use for ADDRESSLINE2 as normally there is no additional line between a post office box and the city.

Based on your example with the 2 ADDRESSLINE entries I might suggest using ‘Urbanization’ and ‘Street’ for your ADDRESSLINES, depending of course on their content.

You could otherwise maybe have a look at the ‘Generic’ address format, as that is build on displaying prebuild lines. Or as my colleague mentioned building a custom address block, but that does require some handlebars knowledge to start with.

P.s. I am still very curious what would the content of the ADDRESSLINE2 in your setup, maybe it warrants an improvement on our side…

Hope this helps.

Hello,
Marten - thank you, I will go that route when using address blocks from now on. That solved my issue.

voortmac - thank you for the explanation. It makes sense. My example may have been a bad one in using the PO Box. When testing, I always test the address block using the Name, Addressline1, Addressline2, City State Zip. I am not sure about the requirement for the suite #'s or apartments #'s being on the same line as the Addressline1. The majority of our addresses use the second line for that purpose.

Thank you both for your help!!!

1 Like