Anvil Logo
Products
Industries
Resources
Developers
Workflows

Add document selection logic

Dynamically determine when a document is included in your Workflow’s output packet by adding selection logic to your PDFs.

If you want to dynamically fill PDF fields, see this tutorial instead to learn how.

Back to Help Center

What is document selection logic

Anvil Workflows allow you to generate customized PDF packets based on a set of logical conditions. A single Workflow can accommodate a variety of outcomes and different final PDF output needs. By adding all PDFs that could possibly be included in a Workflows’ output packet and setting visibility rules for each PDF, Anvil will dynamically select and fill the correct PDFs for you.

For example, a landlord may have standard lease agreements for each state and an additional lead-based paint disclosure for properties built before 1978. In this case, standard lease agreements for each state and the disclosure document would be added to the Workflow. With document visibility logic added, Anvil would select the lease agreement for the state indicated in the Webform and include the disclosure document for any buildings built before 1978.

Add selection logic to documents

Logical conditions are commonly based on Webform fields. Before you start adding selection logic to documents, be sure to add all relevant Webform fields and documents to your Workflow first.

To add document selection logic to PDFs:

  1. Navigate to the Workflow editor
  2. Select the PDF tab in the top toolbar
  3. Click the PDF navigator and select the relevant document
  4. Select the Logic tab in the PDF editor panel
  5. Click Add condition
    1. Select the Webform field you want to base your document visibility on
    2. Add relevant condition
  6. Save

Repeat these steps to add more conditions to the current document or any additional documents.

Note: To add more complex logic, use the advanced JSON editor instead.

Back to Help Center

Other common posts

1 - 0 of 0

Contact support

We know dealing with tech support can be painful. It's our goal to help you as quickly and efficiently as possible. Once we get your message, we will email you back as soon as we can.
    Ready to experience document workflow automation?Sign up for free