onclick function in email notification
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2017 01:36 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2017 01:43 AM
You can define your code in mail script and call that mail script in email notification.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-26-2017 02:21 AM
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 :
Regards,
Nitesh Asthana