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

Chuck Tomasi
Tera Patron

Hi Denee,



Use the <b> </b> tags around your text. Something like this:



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


Hello Chuck


I have tried that and it strips the notification.



this is the email that came in


update.JPG


It should look like this but bold the current.variables.number text



correct.JPG


Hi Denee,



I'm not quite clear... I don't see the <b> </b> tags. Were those stripped out? Did you manually bold part of the line in template.print above from the community post editor? (because I don't know of a way to bold in the script editor.)


Hi Chuck Sorry



Here is what I put in


mail_script>


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


</mail_script>



updated.JPG