I am creating a form for time off requests. When the form is first submitted it goes to HR for approval and then if they approve it goes to the employees supervisor to approve. If both approve the employee is sent an email that the time off is approved. I would like the email that is sent to the employee to have comments entered by both HR and the Supervisor. The supervisor comment is easy, I can just assign {/dataset/_fs_comment} to the email, but I am unable to figure out how to get the HR's comments onto the email. I have tried to create a hidden field that is then populated during the HR Step ID by doing the following:
$(document).ready(
function () (
$('#q12').addClass('hidden');
if($('input[name="stepid"]').val() =="11") {
$('#q12').val("{/dataset/_fs_comment}");
}
});
But, there is either something wrong with the syntax, or it cant be done this way. Either way, The field does not populate on the email to the employee.