Script to add custom field text to subject line

Script to add custom field text to subject line

We have a trigger setup to send an email to non IT people when a New Hire is brought on. I created a form rule to add the employee name to the Subject line. the script is below

/*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”);//.

Not being a good scripting person I am unsure of how to change the script to have both the First and Last name added to the subject line

Any help would be appreciated

                New to ADSelfService Plus?