onclick function in email notification

naveenahr
Kilo Contributor

Hi All,

Please let us know how to use onclick html function in email notification.

I have use;

<button type="button" onclick="$sysapproval()">Click Me!</button>

as soon as I save the record, the onclick function will disappear and button wil not work.

Please let let me konw how to put this functionality in email notification.

Thanks in advance,

Naveena

2 REPLIES 2

khusboo1
Kilo Expert

You can define your code in mail script and call that mail script in email notification.


Nitesh Asthana1
Kilo Guru

Hi Naveena,



onClick function disappears because static HTML block doesn't support Javascript functions.



You can write your logic by creating a email script by navigating System Notification > Notification Email Script and use it in your email notification in below format:



For reference :



Email Notification :



${mail_script:incident_take_me_to_the_incident}



Email Script :



find_real_file.png



Regards,


Nitesh Asthana