https://netsuiteprofessionals.com logo
Title
k

Karan

07/01/2022, 7:16 AM
On the Expense Report there are two custom buttons: Approve and Reject. Those buttons are created using workflow. How to trigger a client script on that button click?
j

Jono

07/01/2022, 7:49 AM
a bit of a hack and unsuported... i injected the below into a html field on the record via a worklfow - essentially doing what you're chasing. ' <script> var buttonid = "custpageworkflow1639" document.getElementById(buttonid).onclick=function(event){ //somecode NS.Workflow.buttonClick(buttonid); } </script> '