I am struggling with the syntax template.print()

pal1
Kilo Explorer

Hi all,

I am struggling with the syntax template.print(). I want to display buttons in an email notification.I am using html code in email notification script and using that html code within the template.print() syntax.My HTML code is working fine but when I am using that within template.print error is coming.

find_real_file.png


 

8 REPLIES 8

bernyalvarado
Mega Sage

Hi Pallavi,



Do don't need a template.print. You can just copy and paste your html code within your message field.



Thanks,


Berny


Oh! I just noted that you have it as a Notification Email Script. Move the html code to a Notification template instead and it will work. Just make sure you paste your html within the message field.



Thanks,


Berny


Daniel Kolar2
Tera Contributor

Javascript string using quotation marks doesn't support multi lines

this just isnt true