HTML Report Logic and Section Printing Control

Overview

Within the HTML report editor, logic elements can be used to control which report sections will be printed. The most basic method is to use the If Not Blank logic element to only show the section if there is any data. There are more complex logic elements as well, such as If One Contains and If One Like, and there are variants of all for use with repeaters.

All the logic elements covered in this document will be contained within the Repeaters, Checkboxes & Radio Buttons, or Logic menus in the toolbar.

Logic

The elements within the Logic menu create a section of the report that will only display based on the condition set by the type of element. The logic elements are phrased like questions, and if the answer to them is “true” then all items between their start and end lines will be displayed. Otherwise, they will not.

Element Name Description Parameters
If One Contains Adds the element:
{ifOneContains#,#..;”value”}
Content to show or hide.
{endIfOneContains#,#..;”value”}

If any of the elements specified in the parameters has a value equal to the set “value” parameter, the content will display. Otherwise, it will not.

ex:
{ifOneContains638392701325888322;”Overnight”}
Content to show or hide.
{endIfOneContains638392701325888322;”Overnight”}

#,#.. – This parameter should be replaced with a single element id or a comma-delimited list of element ids. The form’s elements with these ids are what get checked for the matching “value” parameter.

ex:
638392701325888322
638392701325888322,638392744601447421

“value” – Maintaining the quotations, replace “value” with the value you would like to check for. When one of the specified fields has a value that exactly matches this parameter, the content will display.

If One Like Adds the element:
{ifOneLike#,#…;session:(session value)|”value”}
Content to show or hide.
{endIfOneLike#,#…;session:(session value)|”value”}

This can often be shortened to:
{ifOneLike#,#…;”value”}
Content to show or hide.
{endIfOneLike#,#…;”value”}

If any of the elements specified in the parameters has a value that is the set “value” parameter is LIKE, the content will display. Otherwise, it will not.

ex:
{ifOneLike638392701325888322;”Overnight”}
Content to show or hide.
{endIfOneLike638392701325888322;”Overnight”}

#,#.. – This parameter should be replaced with a single element id or a comma-delimited list of element ids. The form’s elements with these ids are what get checked for the matching “value” parameter.

ex:
638392701325888322
638392701325888322,638392744601447421

“value” – Maintaining the quotations, replace “value” with the value you would like to check for. When one of the specified fields has a value this parameter is LIKE, the content will display.

If All Contains Adds the element:
{ifAllContains#,#..;”value”}
Content to show or hide.
{endIfAllContains#,#..;”value”}

If all of the elements specified in the parameters have a value equal to the set “value” parameter, the content will display. Otherwise, it will not.

ex:
{ifAllContains638392701325888322;”Overnight”}
Content to show or hide.
{endIfAllContains638392701325888322;”Overnight”}

#,#.. – This parameter should be replaced with a single element id or a comma-delimited list of element ids. The form’s elements with these ids are what get checked for the matching “value” parameter.

ex:
638392701325888322
638392701325888322,638392744601447421

“value” – Maintaining the quotations, replace “value” with the value you would like to check for. When all of the specified fields have a value equal to this parameter, the content will display.

If Blank Container Adds the element:
{ifBlankContainerElimCheckFalse#,#..}
Content to show or hide.
{endIfBlankContainerElimCheckFalse#,#..}

If all of the elements specified are blank, then the content will display. Otherwise, it will not.

ex:
{ifBlankContainerElimCheckFalse638392701325888322}
Content to show or hide.
{endIfBlankContainerElimCheckFalse638392701325888322}

#,#.. – This parameter should be replaced with a single element id or a comma-delimited list of element ids. The form’s elements with these ids are what get checked for having a value.

ex:
638392701325888322
638392701325888322,638392744601447421

If Not All Contains Adds the element:
{ifNotAllContains#,#..;”value”}
Content to show or hide.
{endIfNotAllContains#,#..;”value”}

If not all of the elements specified have a value equal to the set “value” parameter, the content will display. Otherwise, it will not.

ex:
{ifNotAllContains638392701325888322;”Overnight”}
Content to show or hide.
{endIfNotAllContains638392701325888322;”Overnight”}

#,#.. – This parameter should be replaced with a single element id or a comma-delimited list of element ids. The form’s elements with these ids are what get checked for the matching “value” parameter.

ex:
638392701325888322
638392701325888322,638392744601447421

“value” – Maintaining the quotations, replace “value” with the value you would like to check for. When not all of the specified fields have a value equal to this parameter, the content will display.

If Not Blank Adds the element:
{ifNotBlank#,#..}
Content to show or hide.
{endIfNotBlank#,#..}

If any of the elements specified have a value, then the content will display. Otherwise, it will not.

This logic element must reference a field element and not a container.

ex:
{ifNotBlank638392701325888322,638392744601447421}
Content to show or hide.
{endIfNotBlank638392701325888322,638392744601447421}

#,#.. – This parameter should be replaced with a single element id or a comma-delimited list of element ids. The form’s elements with these ids are what get checked for having a value.

ex:
638392701325888322
638392701325888322,638392744601447421

If Not Blank Container Adds the element:
{ifNotBlankContainerElimCheckFalse#,#..}
Content to show or hide.
{endIfNotBlankContainerElimCheckFalse#,#..}

If any of the elements specified have a value, then the content will display. Otherwise, it will not.

ex:
{ifNotBlankContainerElimCheckFalse638392701325888322}
Content to show or hide.
{endIfNotBlankContainerElimCheckFalse638392701325888322}

#,#.. – This parameter should be replaced with a single element id or a comma-delimited list of element ids. The form’s elements with these ids are what get checked for having a value.

ex:
638392701325888322
638392701325888322,638392744601447421

Repeaters

These logic elements work only within repeater tables. When more than one logical statement is made for a repeater row then ALL given logical statements must be true to see the row. Also, you can only use one logical statement type once (i.e: you can’t have RChildIfOneContains stated more than once in a row). If One Contains, If One Like, and If Not Blank must reference field elements and not containers.

Element Name Description Parameters
If One Contains

Adds the {rChildIfOneContains#,#..;”value”} element.

If any of the elements specified in the parameters has a value equal to the set “value” parameter, the table row will display. Otherwise, it will not.

ex:
{rChildIfOneContains638392701325888322;”Principal”}

#,#.. – This parameter should be replaced with a single element id or a comma-delimited list of element ids. The form’s elements with these ids are what get checked for the matching “value” parameter.

ex:
638392701325888322
638392701325888322,638392744601447421

“value” – Maintaining the quotations, replace “value” with the value you would like to check for. When one of the specified fields has a value that exactly matches this parameter, the content will display.

If One Like

Adds the {rChildIfOneLike#,#…;session:(session value)|”value”} element.

This can be shortened to {rChildIfOneLike#,#…”value”}.

If any of the elements specified in the parameters has a value that is the set “value” parameter is LIKE, the table row will display. Otherwise, it will not.

ex:
{rChildIfOneLike638392701325888322″School Principal”}

#,#.. – This parameter should be replaced with a single element id or a comma-delimited list of element ids. The form’s elements with these ids are what get checked for the matching “value” parameter.

ex:
638392701325888322
638392701325888322,638392744601447421

“value” – Maintaining the quotations, replace “value” with the value you would like to check for. When one of the specified fields has a value this parameter is LIKE, the table row will display.

If All Contains

Adds the element:
{ifAllContains#,#..;”value”}
Content to show or hide.
{endIfAllContains#,#..;”value”}

 

If all of the elements specified in the parameters have a value equal to the set “value” parameter, the content will display. Otherwise, it will not.

ex:
{ifAllContains638392701325888322;”Overnight”}
Content to show or hide.
{endIfAllContains638392701325888322;”Overnight”}

#,#.. – This parameter should be replaced with a single element id or a comma-delimited list of element ids. The form’s elements with these ids are what get checked for the matching “value” parameter.

ex:
638392701325888322
638392701325888322,638392744601447421

“value” – Maintaining the quotations, replace “value” with the value you would like to check for. When all of the specified fields have a value equal to this parameter, the table row will display.

If Not Blank

Adds the {rChildIfNotBlank#,#..} element

If all specified elements are not blank, the table row will display.

ex: {rChildIfNotBlank638392701325888322}

#,#.. – This parameter should be replaced with a single element id or a comma-delimited list of element ids. The form’s elements with these ids are what get checked for having a value

ex:
638392701325888322
638392701325888322,638392744601447421

If Repeater
Container is Blank

Adds the element:
{rChildIfBlankContainerElimCheckFalse#,#..;”true|false”;#}
Content to show or hide.

{endRChildIfBlankContainerElimCheckFalse#,#..;”true|false;#}

 

This can often be shortened to:
{rChildIfBlankContainerElimCheckFalse#,#..}
Content to show or hide.
{endRChildIfBlankContainerElimCheckFalse#,#..}

If all the elements specified in the parameters have no value, the table row will display. Otherwise, it won’t.

ex:
{rChildIfBlankContainerElimCheckFalse638392701325888322}
Content to show or hide.
{endRChildIfBlankContainerElimCheckFalse638392701325888322}

#,#.. – This parameter should be replaced with a single element id or a comma-delimited list of element ids. The form’s elements with these ids are what get checked for having a value.

ex:
638392701325888322
638392701325888322,638392744601447421

“true|false” – If true, the first

(table row) ancestor that this call is in will be removed.

# (The third one) – This removes additional next-siblings that are relative to the

mentioned above. 5 would remove a total of 6 rows in the repeater row for that instance. This is useful when many rows are joined using rowspan and appear to be one row.

If Repeater
Container is Not Blank

Adds the element:
{rChildIfNotBlankContainerElimCheckFalse#,#..;”true|false”;#}
Content to show or hide.
{endRChildIfNotBlankContainerElimCheckFalse#,#..;”true|false”;#}

 

This can often be shortened to:
{rChildIfNotBlankContainerElimCheckFalse#,#..}
Content to show or hide.
{endRChildIfNotBlankContainerElimCheckFalse#,#..}

If any of the elements specified in the parameters have a value, the table row will display. Otherwise, it won’t.

ex:
{rChildIfNotBlankContainerElimCheckFalse638392701325888322}
Content to show or hide.
{endRChildIfNotBlankContainerElimCheckFalse638392701325888322}

#,#.. – This parameter should be replaced with a single element id or a comma-delimited list of element ids. The form’s elements with these ids are what get checked for having a value.

ex:
638392701325888322
638392701325888322,638392744601447421

“true|false” – If true, the first

(table row) ancestor that this call is in will be removed.

# (The third one) – This removes additional next-siblings that are relative to the

mentioned above. 5 would remove a total of 6 rows in the repeater row for that instance. This is useful when many rows are joined using rowspan and appear to be one row.

Other Considerations

  • When a group of checkboxes is contained within a container, using Titled Table or Untitled Table from under the Checkboxes & Radio Buttons menu and setting the last parameter to “false” will have the checkbox table only display values that were selected.
  • When using any of the standalone checkbox logic elements from under the Checkboxes & Radio Buttons menu, setting the last parameter to “true” will force the checkbox element to only display if the checkbox on the record has been checked.

  • Any repeater rows that have no values in any fields are automatically prevented from displaying on print.