Greetings,
We need to customize the employee detail_in.htmpl form to add myfunction alert message on click on checkbox.
I tried below methods but the popup is coming but the value is not storring in databse that is 1 if checked and if unchecked 0, no values are storing
<PDM_MACRO name=dtlCheckbox hdr="Business Critical" attr="zbuscrit" evt="onClick='myFunction(this.value)'">
I have also tried another one. but the result is same. no values are storing in database
<PDM_MACRO name=dtlCheckbox hdr="Business Critical" attr="zbuscrit" evt="onclick=\\\"myFunction(this.value)\\\"">
and if I remove the "evt="onClick='myFunction(this.value)'" then the values are storing in database.
function myFunction(v)
{
if (v == 1)
{
alert("You checked that interruption is Business Critical. If both selected, Your Incident ID is IN"+ $args.ref_num);
}
}
Any guidance or help are highly appreciated.
Thanks
Mayur