You are viewing limited content. For full access, please sign in.

Question

Question

Format an Address block when filling out a PDF

asked on December 12, 2014

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.

 

0 0

Replies

replied on December 12, 2014

How about a conditional decision to check if the token for address line2 is empty?

0 0
replied on December 12, 2014

Another option might be to stuff them all into a multi value token. Then in your Fill out PDF activity put that token in and open the token editor. Apply Trim and Remove Empty Item functions, then Apply Index and have all values separated by line break. This is untested but I think would get you the results you want.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.