maria_depasqual Absent Member.
Absent Member.
702 views

HTML Email Templates Dynamic Field List


I have a user who is requesting an HTML notification template such that it only displays the field title and data if the field contains data. Certain fields which contain data would also need to be displayed in a different color.Example: The notification is for an upcoming release. The release contains "Known Issues" so display the title "Known Issues" and the (text) data in red. For releases with no "Known Issues" (meaning the field is blank), do not display the Known Issues title at all. The idea is that Known Issues, when they exist, need to stand out in the email.Has anyone gotten fancy with html templates?
0 Likes
4 Replies
PM Thompson Acclaimed Contributor.
Acclaimed Contributor.

Re: HTML Email Templates Dynamic Field List


What type of field is "Known Issues"?
0 Likes
maria_depasqual Absent Member.
Absent Member.

Re: HTML Email Templates Dynamic Field List


Known Issues would be a text field.
0 Likes
Highlighted
adil_k_hussain Absent Member.
Absent Member.

Re: HTML Email Templates Dynamic Field List


I don't know how to do it with html but maybe you can do it using 'decision' and 2 states. The idea will be that 1) From the incoming state, check if known issues are there. 2) If known issues are present; send to 'Known_Issue_Present' state. If not send to 'No_Known_Issue_Found' state. Both states are basically same otherwise.3) Now that we've already know that 'Known_Issue_Present' state has the known issue field. You can set a notification to be sent out to let your user know about it. In 'No_Known_Issue_Found' state, no need to set up the notification. 4) Now both states go back to the same next state.For the coloring; you can use the notification editor to do that. Let us know if that works.
0 Likes
PM Thompson Acclaimed Contributor.
Acclaimed Contributor.

Re: HTML Email Templates Dynamic Field List


No guarantees, but try this:$IF(FIELDTEST|Known Issues|)Known Issues field is blank<br>$ELSE()Known Issues field (not blank): $FIELDVALUE(Known Issues)<br>$ENDIF()
0 Likes
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.