Bold a variable in a workflow notification

deneech
Giga Expert

Hello

I am trying to bold current.variables.number_text in my mail script and its not populating. Can someone help?

<mail_script>
template.print('The assigned asset number for:   '+current.variables.asset_description +' is '+current.variables.number_text);
</mail_script>

Click here to view RITM: ${URI_REF}

Mail Script.JPG

Thanks

Denee

1 ACCEPTED SOLUTION

HarshTimes
Tera Guru

Hi Denee,


From your screenshot it looks like that you have selected the notification content type as plain text. PLease set that to html and then set the bold and try.


find_real_file.png


View solution in original post

13 REPLIES 13

Odd. If there's a syntax error in there - I'm not seeing it.


I tested it and this is the syntax error



ERROR at line 4: Expected an assignment or function call and instead saw an expression.


HarshTimes
Tera Guru

Hi Denee,


From your screenshot it looks like that you have selected the notification content type as plain text. PLease set that to html and then set the bold and try.


find_real_file.png


Hello Harshtimes



We just upgraded to Fuji can you tell me where will I change the notification content type to html?



thanks


Denee


Hi Denee,



I should note that Fuji is no longer under support now that Istanbul is available. I hope that doesn't rain on your parade.



Rich HTML format came out in Eureka. This should help you determine if you can convert the notification or the template it uses to Rich HTML.


Convert an email template to rich HTML