I have created a HTML email signature that uses variables to get data from active directory, but if any of these variables are empty the signature displays a blank space.
Is there any way - preferably without javascript (if possible) - to say if the variable is empty/null then don't display that line of content.
For example, if the email field is empty the signature will display 'E: [blank space]'. I'd rather it not display the Email line. The images are probably more helpful.
Here is the code [snippet] I'm using in the signature...
<div class="all-info" style="float: left; padding-left: 5px;padding-top: 15px">
<h3 style="margin: 0px; color: #DB0E15">%%FirstName%% %%LastName%%</h3>
<h4 style="margin: 0px; padding: 3px 0px 6px 0px;">%%title%%</h4>
<h5 style="margin: 0px; padding-bottom: 5px;"><span style="color: #DB0E15">E : </span>%%email%%</h5>
<h5 style="margin: 0px; padding-bottom: 3px;"><span style="color: #DB0E15">T : </span>%%PhoneNumber%%</h5>
</div>
Note: It needs to work in Outlook as well as other clients/browsers.
Signature when email not blank
Signature with blank email - don't want this line appearing