/*Set subject line from employee name*/
var subtext=" New Hire Request: ";
var user=await CS.getValue("udf_fields.udf_char6");//should be followed by udf_fields and in lowercase
if(user !=null){
var subject_text= subtext + user;
CS.setValue("subject",subject_text);
}
CS.end();
We have now changed the form to have separate fields for employee first name and employee last name (Custom Fields) Employee First Name is "UDF_CHAR168 " and the Employee Last Name field is “UDF_CHAR170”);//.