How to make empty Project attribute field name hidden on notifications?

On my Project Notifications, how do I set it up so that if an attribute is empty (has no value inputted) the name of the field in addition to the value will be hidden on the emailed notification?

Is there an option like this: {{#CustomAttributes}}<strong>{{Name}}:</strong> <br /> {{Value}}<br /> <br />{{/CustomAttributes}}   for Project Notifications?  I don't have any custom attributes for the Projects form, just the default fields. Is there a version of that code for default attribute fields?   When I use that code on my ticketing application notifications, the name of the value in addition to the empty form fields will not appear in the emailed notification.

Thank you.

Asked by Craig Topple on Thu 5/2/24 11:56 AM Last edited Thu 5/2/24 2:21 PM
Sign In to leave feedback or contribute an answer

Answers (2)

This answer has been marked as the accepted answer
Brittany Renn Thu 5/2/24 12:40 PM

Hi Craig, 

I believe you can include open/closing tags for the default attributes to determine whether or not they should be included like this: 

{{#UpdateText}}
<strong>Comments:</strong> {{{UpdateText}}}
{{/UpdateText}}

Can you give that a try and see if it works for you? 

Best,
Brittany Renn
TDX Support

No feedback

Mark Sayers Thu 5/2/24 12:39 PM

Hello Craig,

Which field on your notification specifically are you having trouble with appearing when it is empty?

Can you supply a screen shot?

Sincerely,
Mark Sayers
Sr Support Consultant, CS

No feedback
Hi Mark,

I have project managers who prefer to leave the Task field empty and include that information in the description field. When notifications are generated, the word Task (in bold) appears on the notification with an empty value beside it. If the Task field is empty, I would like the field name (Task) to be hidden.
- Craig Topple Thu 5/2/24 2:18 PM
I added a screenshot to the original question. - Craig Topple Thu 5/2/24 2:22 PM