All Collections
Advanced Document Automation
Conditional Fields ( IF/THEN statement)
How to Eliminate Street Address Line 2 in your template, when you don't need it
How to Eliminate Street Address Line 2 in your template, when you don't need it

Automate the client's full address in your Advanced Templates.

E
Written by Eszter Takacs
Updated over a week ago

When you automate the client address in your template, they may have Address Line 2.
If a field is inserted in the template and the field doesn't have a value at the time of drafting, it will leave the field name in the document.
So for example, if your client doesn't have an Address Line 2, your document would be like this:
​

There is an easy way to remedy this, so you don't have to do any manual work on the document!
​

Step 1: Create the conditional field


Condition 1 :
IF "Street Address Line 2" is empty ( so there is no value in MyCase for that client)
THEN (insert the value of Street Address Line 1)
​
Condition 2 :
IF "Street Address Line 2" is not empty ( so there is value in MyCase for that client)

THEN (insert the value of Street Address Line 1, then Street Address Line 2 in a new line)
​

To set up these conditions, you need to reference the Street fields' values in your THEN statement. Also, the second condition THEN statement must be a multiline text to keep the correct formatting.

Step 2: Insert the conditional field in your template

You do not need to insert the Street fields in your template, only the conditional field

Did this answer your question?