check box in email notification servicenow

sai9845
Tera Contributor

I need to display the checked checkbox value in the email notification for the approver.

The email  notification was written on the sysapproval table.

Whichever the check box I check it has to display in the email.

 

1 REPLY 1

ShrutiG57423582
Tera Contributor

Hello Sai,

 

Did you get any solution for your query?

 

You can use below email script on "sysapproval_approver" table. it works for me

 

 if (current.sysapproval.variables.abu_dhabi == 'true') {
        template.print("<br><input type = 'checkbox' style='margin-left: 30px;' checked disabled >Abu Dhabi<br>");
    }
    if (current.sysapproval.variables.france == 'true') {
        template.print("<input type = 'checkbox' style='margin-left: 30px;' checked disabled>France<br>");
    }
    if (current.sysapproval.variables.singapore == 'true') {
        template.print("<input type = 'checkbox' style='margin-left: 30px;' checked disabled>Singapore<br>");
    }
Result will look like this
ShrutiG57423582_0-1728400932833.png

 

 
Please let me know, if you found another solution other than this, as i need to show more than 30 checkboxes in email body
 
Mark as helpful if it works for you