bold font in business rule
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2020 11:27 AM
team,
i am tryin bold font to come in business rule by using below script please suggest what i am missing here
(function executeRule(current, previous /*null when async*/) {
var retString = '';
retString += '<p><strong style="font-weight:bold">Please choose whether you are adding a new article or updating an existing article:</strong> ' + current.variables.action_type + "</p>";
retString += '<p><strong style="font-weight:bold">Select article:</strong> ' + current.variables.select_article + '</p>';
retString += '<p><strong style="font-weight:bold">Provide a short description for the knowledge article:</strong>' + current.variables.shortdescription_knowledge +'</p>';
retString += '<p><strong style="font-weight:bold">Please specify the audience of this article:</strong> ' + current.variables.audience + '</p>';
retString += '<p><strong style="font-weight:bold">Please choose the category this article belongs in:</strong> ' + current.variables.category + '</p>';
retString += '<p><strong style="font-weight:bold">Please include any key search terms to help users find your article:</strong> ' + current.variables.key_search + '</p>';
retString += '<p><strong style="font-weight:bold">Article Body - please paste the body of your article below or attach it using the Add Attachments button below:</strong> ' + current.variables.article_body + '</p>';
current.description = retString;
})(current, previous);
output:
- Labels:
-
Multiple Versions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2020 11:31 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2020 11:33 AM
i tried but did not worked, may be i missing some thing could you please help me with syntax

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2020 11:41 AM
Can you try replacing
current.description = retString;
with
current.description = '<strong>'+retString+'</strong>';
Hope business rule is running Before Insert/Update,

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2020 11:50 AM
Also, I used the script as provided from your (Deepthi )comments & it works well