All Collections
Advanced Document Automation
Conditional Fields ( IF/THEN statement)
Eliminate extra breaks when a Paragraph is conditionally inserted
Eliminate extra breaks when a Paragraph is conditionally inserted

Empty Placeholder in a Template

Ben Q avatar
Written by Ben Q
Updated over a week ago
Advanced.png

When you create a conditional field and the paragraph that should appear/disappear based on a question, you naturally want to create the conditional field as follows:

  • if the conditions are insert the language from the THEN statement

  • otherwise "Exclude this field"

Screen Shot 2022-10-13 at 3.33.03 PM

If there is no Commission, the field will default to “Exclude this field”, which automatically inserts a blank placeholder in the document.

Instead of creating the conditional field as mentioned above, use the language below as part of your conditional field. Your conditional field should say:

  • if there is a Commission, insert the "Commission" and “Payment” paragraphs

Screen Shot 2022-10-13 at 3.35.37 PM

  • if there is no Commission, insert the “Payment” paragraph

Screen Shot 2022-10-13 at 3.35.48 PM

This way you don’t have an option to “exclude the fields”, as one of the conditional fields will always be evaluated and you will have no empty placeholder in the document!

Did this answer your question?