Skip to main content
Skip table of contents

How to hide or filter a table row based on related list data (Legacy)

This article instruct you how to hide a table row by filtering the related list or add condition to the row.

Filter the line item in related list tag

The most straightforward option to hide table rows based on some condition is to filter out the line item that is not matched with your criteria. Thus, you can optimize the speed to generate data and create the document since Documill Dynamo doesn't have to go through all unnecessary data. Step by step instruction below:

Select the table body

In the breadcrumbs, select Row or Table Body (depends on where you mapped the related list), which has the blue color

image-20240109-090900.png

Select Tag in the right pane, in Attributes tab, you should see the blue mark next to Logic

image-20240109-090906.png

Click to Logic

Select the relatedList tag to see the tag's attributes

Select the "..." icon in where attribute

image-20240109-090914.png

The Fields popup allows you to select fields in the relatedList and filter them

image-20240109-090920.png

Select the field and add your filter criteria using SOQL syntax

image-20240109-090926.png

Click OK

Now Documill Dynamo will generate data from the relatedList based on the specified criteria. Unqualified line item will be skipped and not be processed neither printed to the document.

To learn more about SOQL Syntax: https://developer.salesforce.com/docs/atlas.en-us.soql_sosl.meta/soql_sosl/sforce_api_calls_soql_select_conditionexpression.htm

Hide the row using If attribute

In some case, you may want Documill Dynamo to process all the line item data, but not to show them in the table. Thus, instead of adding the where condition in relatedList tag, you can add a If condition in the Row element.

Click to the table and select Row in the breadcrumbs. The selected Row should be the element where you mapped relatedList data.

image-20240109-090932.png

Select Tag in the right pane, then select Attributes tab

Select the "..." icon next to If attribute to add the condition you want to use. The Data Source should open the list of fields in from the related list.

Learn more how to add If condition here

image-20240109-090938.png

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.