I am collecting an address from a form. Workflow retrieves the address from the form as a series of sub fields (Address - Line 1, Address - Line 2, Address - City, Address - State, etc).
I am adding these subfields to a single field (text box) on a PDF template.
The token dialog looks like below and the address subfield values appear on the PDF formatted the way they are in the dialog box.
123 Cardiac Road
Suite 6000
Oakville, Ontario
Canada K9M 8T6
So far, so good. But my problem is that sometimes the Address - line 2 subfield is not filled out on the form. This results in a blank line in my address block on the PDF between Address - line 1 and Address-City. Is there anyway to format this so that the line is skipped if Address - Line 2 is empty.
Or is there a better way of doing this entirely?
All suggestions are appreciated.