- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2023 02:40 AM
Hi Everyone,
I need to make the text in Short Description as bold in this mail script. I tried <b> and <stong >tags but nothis seems to be changing .
(function runMailScript(current, template, email, email_action, event) {
if (current.getTableName() == 'task_sla') {
template.print('<div><p class="sub2heading strong">Additional Details:</p>');
template.print('<p class="normal">Caller: ' + current.task.caller_id.getDisplayValue() + '</p>');
template.print('<p class="normal">Email: ' + current.task.caller_id.email + '</p>');
template.print('<p class="normal">Phone: ' + current.task.caller_id.phone + '</p>');
template.print('<p class="normal">Mobile: ' + current.task.caller_id.mobile_phone + '</p>');
template.print('<p class="normal">Short description: ' + current.task.short_description + '</p>');
template.print('<p class="normal">Description: ' + current.task.description + '</p>');
BR,
Renu.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2023 02:44 AM
Hi @Renu4 ,
Check you tried in this way
template.print('<p class="normal">Short description: <strong>' + current.task.short_description + '</strong></p>');
Please mark it as solution proposed and helpful if it serves your purpose.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2023 03:16 AM
try this
template.print('<p class="normal">Short description: ' + '<b>' + current.task.short_description + '</b></p>');
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2023 02:44 AM
Hi @Renu4 ,
Check you tried in this way
template.print('<p class="normal">Short description: <strong>' + current.task.short_description + '</strong></p>');
Please mark it as solution proposed and helpful if it serves your purpose.
Thanks,
Anand
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2023 03:16 AM
try this
template.print('<p class="normal">Short description: ' + '<b>' + current.task.short_description + '</b></p>');
If my response helped please mark it correct and close the thread so that it benefits future readers.
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-10-2023 03:16 AM
Thank you Anand it works.