This article gives you some examples how to handle blank values in Active Directory attributes.
The used screenshots are from Signature Manager. But you will find that behaviour in Mail Disclaimers is equal.
Often values in Active Directory attributes are not filled with values.
So you might want not to display these attributes.
Example 1
The first example shows that attributes with blank / NULL values are shown.
With this configuration a blank line is between firstname and lastname!
Example 2
Example 2 demonstrates how to prevent the second line to be shown by using the Prefix and Suffix attributes of the Exclaimer object. Also set Hide if blank to TRUE as well as Interpret markups.
The result should be:
Example 3
The third examples shows something which is really tricky: how to embedd the attributes in a table and not displaying the table row, if the value is empty.
The trick is to include the HTML-Markups in the Exclaimer object.
The result (with border = 1 in size)
The complete html code of all 3 examples looks like this:

Jetzt kommentieren