Default values in mail templates

Description

Hi,

I need to show users's phone number in a mail signature.
Some have data in Phone and some have not.
Instead of leaving a blank line, I would like to be able to set a default value instead
When no data, I need to have a fallback value (office number).

Here's the mail template I use for my tests:

<p>@Name@<br />
Job:@C_Job_ID<C_Job.Name>:---@<br />
T: @Phone@<br />
M: @Phone2:sorry, no mobile@<br />
@EMail@</p>

If the user has a job, it will display the name ; otherwise, it will display '---'.
For Phone2, it will display content of Phone2, otherwise 'sorry, no mobile'

Regards,

Nicolas

Environment

None

Activity

Fixed

Details

Assignee

Reporter

Fix versions

Priority

Created March 3, 2022 at 11:49 AM
Updated May 1, 2022 at 1:50 PM
Resolved March 3, 2022 at 1:55 PM