We're reclaiming inactive PDIs to keep them available for active builders. Learn what's changing, who's affected, and how to protect your work. Read More

notification in table format

Shaik Imran
Tera Contributor

How to create a notification in table format

15 REPLIES 15

Shaik Imran
Tera Contributor
(function runMailScript(current, template, email, email_action, event) { if (current.u_email_type != 'pis') { // Incident Manager: label + value, both bold template.print('<br/><p><span style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"><strong>' + gs.getMessage('Incident Manager: ') + current.u_recovery_manager + '</strong></span></p>'); // Communication Specialist: value only, not bold, no label if (!current.u_communication_specialist.nil()) { template.print('<p><span style="font-family: arial, helvetica, sans-serif; font-size: 12pt;">${u_communication_specialist}</span></p>'); } // Technology Owner: label bold, value NOT bold, use ${u_recovery_manager} if (current.u_technology_owner != "") { template.print('<p><span style="font-family: arial, helvetica, sans-serif; font-size: 12pt;"><strong>' + gs.getMessage('Technology Owner: ') + '</strong>' + '<span style="font-weight:normal;">${u_recovery_manager}</span></span></p>'); } } })(current, template, email, email_action, event);

Shaik Imran
Tera Contributor
<tr>
<td style="background-color: ${mail_script:im_cic_priority_color}; color: ${mail_script:im_cic_priority_textcolor}; font-weight: bold; padding: 4px; border: 1px solid #88888c; border-top: none;" colspan="2"><span style="font-family: Aptos, sans-serif; font-size: 12.0pt;">Priority ${mail_script:im_cic_priority}</span></td>
</tr>

Shaik Imran
Tera Contributor
<td style="background-color: #ff0000; color: #ffffff; font-weight: bold; ...">
  <span style="font-family: Aptos, sans-serif; font-size: 12.0pt;">Priority High</span>
</td>

Shaik Imran
Tera Contributor
<table style="width: 100%; border-collapse: collapse; font-family: Arial, sans-serif; border: 1px solid rgb(136, 136, 140); height: 297.844px;">
<tbody><!-- Table Title -->
<tr style="height: 23.0938px;">
<td style="background-color: rgb(126, 128, 126); color: white; font-size: 1.5em; font-weight: bold; padding: 8px; border: 1px solid rgb(136, 136, 140); height: 23.0938px;" colspan="2"><span style="font-family: Aptos, sans-serif; font-size: 15.0pt;">Critical Incident Communication</span></td>
</tr>
<!-- Priority Banner -->
<tr>
<td style="background-color: ${mail_script:im_cic_priority_color}; color: ${mail_script:im_cic_priority_textcolor}; font-weight: bold; padding: 4px; border: 1px solid #88888c; border-top: none;" colspan="2"><span style="font-family: Aptos, sans-serif; font-size: 12.0pt; color: ${mail_script:im_cic_priority_textcolor};">Priority ${mail_script:im_cic_priority}</span></td>
</tr>

Shaik Imran
Tera Contributor
<td style="background-color: ${mail_script:im_cic_priority_color}; color: ${mail_script:im_cic_priority_textcolor}; font-weight: bold; padding: 4px; border: 1px solid #88888c; border-top: none;" colspan="2">
  <span style="font-family: Aptos, sans-serif; font-size: 12.0pt;">Priority ${mail_script:im_cic_priority}</span>
</td>