- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 03:56 AM - edited 06-11-2024 04:05 AM
Hello Experts,
I am trying to make text bold it is working but what I am looking for is I want only service to be bold but instead it is giving me whole print as bold. Any suggestions how do i rectify it
In email script using this
template.print("Here is the Service"+<strong>+"\""+item.service+"\""+</strong>);
Result : I am getting the whole sentense as bold starting from "Here is the Service............"
Just want to make item.service result as BOLD.
Thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 09:52 AM
Hi @Nisha30 ,
I have tried the below in PDI and it is working as expected:
Notification Email Script:
Name: testNotifScript
(function runMailScript( /* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */
email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */
event) {
template.print("Here is the Service" + "\""+'<b>' + current.caller_id.getDisplayValue() + '</b>');
})(current, template, email, email_action, event);
Email Notification:
------------------------
Notification Output:
-----------------------------
Could you please share the whole notification script and the output please?
Please Mark My Response as Correct/Helpful based on Impact
Mark this as Helpful / Accept the Solution if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 04:15 AM - edited 06-11-2024 04:19 AM
Hi @Nisha30 ,
Please try the below:
(function runMailScript( /* GlideRecord */ current, /* TemplatePrinter */ template,
/* Optional EmailOutbound */
email, /* Optional GlideRecord */ email_action,
/* Optional GlideRecord */
event) {
template.print("Here is the Service" + "\"" + '<b>' + item.service + '</b>' );
})(current, template, email, email_action, event);
Also, make sure that the notification email script is not bold as shown below, otherwise it will make the whole content in bold. You have the remove the bold then the above script will work fine.
Please Mark My Response as Correct/Helpful based on Impact
Mark this as Helpful / Accept the Solution if this helps.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 04:59 AM
I tried even with <b> and also in my notification that is not BOLD still i am getting all as BOLD
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 06:10 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-11-2024 07:50 AM