Hello,
I’m using the following script:
// Get the value from the custom Employee Name field
var name = $CS.getValue("ServiceReq_User_UDF_CHAR1");
// Get the value from the subject field
var subject = $CS.getValue("SUBJECT");
// Now append the name value to the subject value
var new_subject = subject + " : " + name;
// set the value of the subject field
$CS.setValue(“SUBJECT”,new_subject);
This leads to the following output: Accounts/Access - Termination : Carlo Maling : Carlo Maling
(For this example, Carlo Maling is the text I enter in the ServiceReq_User_UDF_CHAR1 field)
I can’t figure out why it’s duplicating in the subject line.
What I’d like it to look like is: Accounts/Access - Termination : Carlo Maling
Any help would be appreciated.
Thanks!