Forum Discussion
hide fields in Office 365 signature if there are empty
You can use %% variable attributes. This is a snippet of mine:
<span><b>E:</b> %%email%%</span><br/>
<span class="ddi" data-hide="%%PhoneNumber%%"><b>DDI:</b> %%PhoneNumber%%</span><br/>
In your case, variables you can use are as follows:
%%displayname%%
%%PhoneNumber%%
%%title%%</br>
%%company%%
%%street%%
%%city%%, %%state%% %%zipcode%%
Hello Rhys
Thank you for the update.
Yes, I can use that but the issue is that for example in this case all elements will be inserted in the disclaimer, all 5 of them, even though let's say the user does not have a company phone, therefor no phine number. In this case, I need to make it not display the phone field.
%%displayname%%
%%PhoneNumber%%
%%title%%</br>
%%company%%
%%street%%
%%city%%, %%state%% %%zipcode%%
- VasilMichevJul 08, 2019MVP
You cannot have such granularity with the built-in functionality, it's very limited. You're better off looking for third-party tools that specialize in signature management.
- Ion-vlad OrascuJul 09, 2019Copper Contributor
Thank you
What the other person said might work for single users, but I can't create transport rules to add disclaimers for each individual person, I have hundreds of users
- Rhys WilliamsJul 15, 2019Iron Contributor
I have managed to configure around 20 disclaimer rules configured to apply based on a user's group membership. We have 15,000 users who all need signatures and this method works, what're you seeing?
- Rhys WilliamsJul 08, 2019Iron Contributor
Add this part into the html element as below:
<span class="ddi" data-hide="%%PhoneNumber%%"><b>DDI:</b>Anything inside the <span> that reflects what is in the data-hide attribute will be hidden