Skip to main content

How to hide signature sections in Florbs when attributes are empty in the Google Directory

Not every employee may need working days or mobile phone number displayed in their signature. How do you make sure there is no empty space?

Tanya Babina avatar
Written by Tanya Babina
Updated over 2 months ago

In Florbs, you can conditionally hide parts of your email signature โ€” like a mobile phone line โ€” if the related attribute (e.g. mobilePhone) is empty in a userโ€™s Google directory profile.

How it works

Florbs uses mustache syntax, which supports conditional logic in your HTML template. To hide a line (like a phone icon and number), wrap it in an {{#attribute}}...{{/attribute}} block. This makes the section show only if the attribute has a value.

Example

htmlCopyEdit{{#mobilePhone}} <tr> <td><img src="phone-icon.png" alt="Mobile" /></td> <td>{{mobilePhone}}</td> </tr> {{/mobilePhone}}

If mobilePhone is empty, nothing is shown โ€” no icon, no text, and no empty row.

Example:

Did this answer your question?