How to Set font family using script in flow designer
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-31-2022 04:34 AM
I am trying to set the font family Meriyo UI to work note comments that we are sending via Email.
I have created a script for the same but not able to set the font.
Here is the script
var enqnt = "";
var notes = fd_data.trigger.current.work_notes.getJournalEntry(-1);
//gets all journal entries as a string where each entry is delimited by '\n\n'
var na = notes.split("\n\n");
//stores each entry into an array of strings
for (var i = 0; i < na.length; i++)
{
//gs.print(na[i]+"<br></br>");
var tempStr = na[i];
tempStr = tempStr.replace(/(?:\r\n|\r|\n)/g, '<br></br>');
//tempStr = "<p style="font-size: 10.5pt; font-family: 'Meiryo UI';">"+tempStr+"</p>";
//tempStr = "<span style="font-size: 10.5pt; font-family: 'Meiryo UI';height: 100px;">"+tempStr+"</span>";
enqnt = enqnt + tempStr;
}
varLine1 = "<p style="font-size: 10.5pt; font-family: 'Meiryo UI';">......japanese words.....</p>";
varLine2 = "<p style="font-size: 10.5pt; font-family: 'Meiryo UI';">......japanese words.....</p>";
enqnt = Line1 + Line2 + "<span style="font-size: 10.5pt; font-family: 'Meiryo UI';height: 100px;">" + enqnt+"</span>";
return enqnt;
Can anyone tell me what wrong I am doing?
1 REPLY 1
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎03-31-2022 04:52 AM