FAFR - Sample script to have the additional field value appended to the actual subject line

FAFR - Sample script to have the additional field value appended to the actual subject line

Here is a sample script to be used in FAFR to have the additional field info appended to the actual subject line,

var contract=$CS.getValue("WorkOrder_Fields_UDF_CHAR5");
var subject=$CS.getValue("SUBJECT");
var new_subject = subject + " : " + contract;
if($CS.isFormSubmit()){
$CS.setValue("SUBJECT", new_subject); 
}

Below is the Field and Form Rule that you have to create it in the specific template under On Form Submit.



Please note the Field name differs for each additional field, hence replace it with the right one. You can identify the field name from the Write/Edit Custom script page.




                  New to ADSelfService Plus?