Blank lines in address blocks in any output look ugly.
Get rid of them by using the following code in a custom field.
Make sure the "Formula Return Type" is set to String.
This was designed for the Quotes module so you'll need to replace the filed names ( the ${Module.FieldName} ) if you' are working in a different module.
- Concat(
- If(Len(Trim(${Quotes.Billing Street}))>0,${Quotes.Billing Street},''),
- '<br/>',
- If(Len(Trim(${Quotes.Billing City}))>0,${Quotes.Billing City},''),
- '<br/>',
- If(Len(Trim(${Quotes.Billing State}))>0,${Quotes.Billing State},''),
- '<br/>',
- If(Len(Trim(${Quotes.Billing Country}))>0,${Quotes.Billing Country},''),
- '<br/>',
- If(Len(Trim(${Quotes.Billing Code}))>0,${Quotes.Billing Code},'')
- )
Save yourself a lot of heart ache - always click the "Check Syntax" button after each change.