bold font in business rule

Deepthi13
Tera Expert

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:

find_real_file.png

 

6 REPLIES 6

Willem
Giga Sage
Giga Sage

For me your code is working.

I have created a Before Insert/Update Business rule and tested it. I replaced your variables with 'text'

This is the result:

find_real_file.png

 

Could there be any other business rule impacting this?

Willem
Giga Sage
Giga Sage

It looks like there is some other script impacting this.

Your first line in the Discription states "The following fields have been provided:"

Which is not in your script.