Script to update the description field with selective field values.

Script to update the description field with selective field values.

The sample script provided retrieves values from their respective fields and displays them below the description, making it more convenient for viewing.



Navigate to Incident Field and Form rules > On Form Submit 



Modify the below script as per your Requirement 

var old_description_content = $CS.getDescription();
var x = $CS.getText("CATEGORY");
var y = $CS.getText("SUBCATEGORY");
var z = $CS.getText("ITEM");
var a =$CS.getText("URGENCY");
var new_description_content = old_description_content +'<br>'+'<br>'+ '-------------'+'<br>'+'Subcategory: ' + x + '<br>' +  'Category: ' + y + '<br>' + 'Item: ' + z +  '<br>' +  'Urgency: ' + a;
if($CS.isFormSubmit()){
  $CS.setDescription(new_description_content);

                    New to ADSelfService Plus?