Duplicated output after executing script on submission phase to auto populate the description field.

Duplicated output after executing script on submission phase to auto populate the description field.

Hi all, I am using a variation of David Barrante's script (https://pitstop.manageengine.com/portal/en/community/topic/populate-the-ticket-description-based-on-a-field-selectionbut for some reason, SD+ keeps duplicating the output in the Description field. I am not a programmer and don't know what is wrong with my code. I will appreciate if you can take a look into it and help me find out how to correct the duplicated output.

this is my code:

var description_content = $CS.getDescription();
// Get Picklist value
var x =$CS.getValue("RES_5708_QUS_6");
var Y =$CS.getValue("RES_5707_QUS_2");
var z =$CS.getValue("RES_5707_QUS_3");
var a =$CS.getValue("RES_5707_QUS_5111");
var b =$CS.getValue("RES_5709_QUS_7");
var c =$CS.getValue("RES_5710_QUS_5109");
var d =$CS.getValue("RES_5709_QUS_5110");
var e =$CS.getValue("RES_5709_QUS_5113");


$CS.setDescription(description_content + "<BR><BR><BR><b>User Information:</b>" + "<BR>" + "<b>User Name: </b>" + $CS.getValue("ServiceReq_User_UDF_CHAR1") + "<BR>" + "<b>Global ID: </b>" + $CS.getValue("ServiceReq_User_UDF_CHAR13")+ "<BR>" + "<b>Start Date: </b>" + $CS.getValue("GUDF_DATE1") + "<BR>" + "<b>Employee Type: </b>" + $CS.getText("GUDF_CHAR9") + "<BR>" + "<b>Line Manager: </b>" + $CS.getValue("ServiceReq_User_UDF_CHAR10") + "<BR>" + "<b>Department: </b>" + $CS.getValue("ServiceReq_User_UDF_CHAR2") + "<BR>" + "<b>Job Title: </b>" + $CS.getValue("ServiceReq_User_UDF_CHAR4") + "<BR>" + "<b>Site: </b>" + $CS.getText("SITE") + "<BR><BR><BR><BR><BR>" + "<b>Hardware Information:</b>" + "<BR>" + "<b>Requested Hardware: </b>" + $CS.getValue("RES_5707_QUS_2") + "<BR>" + "<b>Accesories: </b>" + $CS.getValue("RES_5707_QUS_3") + "<BR>" + "<b>Personal Local printer: </b>" + $CS.getValue("RES_5707_QUS_5111") + "<BR>" + "<b>UPS: </b>" + $CS.getValue("RES_5707_QUS_5112")+ "<BR><BR><BR><BR><BR>" + "<b>Software Information:</b>" + "<BR>" + "<b>Additional Software: </b>" + $CS.getValue("RES_5708_QUS_6")+ "<BR>" + "<b>OnDemand Software (Non-Stock): </b>" + $CS.getValue("RES_5708_QUS_913") + "<BR><BR><BR><BR><BR>" + "<b>Network Resources:</b>" + "<BR>"+"<b>Shared Network Drive(s): </b>" + $CS.getValue("RES_5711_QUS_905") + "<BR>" + "<b>Shared Mailbox(es): </b>" + $CS.getValue("RES_5711_QUS_906") + "<BR>" + "<b>Distribution Lists: </b>" + $CS.getValue("RES_5711_QUS_904")+ "<BR><BR><BR>" + "<b>Mobile Phone services: </b><BR>" + $CS.getValue("RES_5710_QUS_5109") + "<BR><BR><BR><BR><BR>" + "<b>Communication Devices:</b>" + "<BR>" + "<b>Office Coomunication Devices: </b>" + $CS.getValue("RES_5709_QUS_7") + "<BR>" + "<b>On Field Communication Devices: </b>" + $CS.getValue("RES_5709_QUS_5110") + "<BR>" + "<b>Video Conferencing resources: </b>" + $CS.getValue("RES_5709_QUS_5113")) ;

And this is my output:

User Information:
User Name:
Global ID:
Start Date: Thu Mar 17 2022 18:11:00 GMT-0500 (Eastern Standard Time)
Employee Type: Contractor
Line Manager: Ruben Perez
Department: ICT Test
Job Title: test
Site: PANAMA




Hardware Information:
Requested Hardware: Standard Plus Laptop Bundle
Accesories: Docking Station HP,Keyboard,Monitor 24in,Mouse
Personal Local printer:
UPS: UPS




Software Information:
Additional Software: MS Power BI,MS Visio Standard
OnDemand Software (Non-Stock):




Network Resources:
Shared Network Drive(s): \\server\test
Shared Mailbox(es): access management
Distribution Lists:


Mobile Phone services:
Smartphone with SIM




Communication Devices:
Office Coomunication Devices:
On Field Communication Devices:
Video Conferencing resources:



User Information:
User Name:
Global ID:
Start Date: Thu Mar 17 2022 18:11:00 GMT-0500 (Eastern Standard Time)
Employee Type: Contractor
Line Manager: Ruben Perez
Department: ICT Test
Job Title: test
Site: PANAMA




Hardware Information:
Requested Hardware: Standard Plus Laptop Bundle
Accesories: Docking Station HP,Keyboard,Monitor 24in,Mouse
Personal Local printer:
UPS: UPS




Software Information:
Additional Software: MS Power BI,MS Visio Standard
OnDemand Software (Non-Stock):




Network Resources:
Shared Network Drive(s): \\server\test
Shared Mailbox(es): access management
Distribution Lists:


Mobile Phone services:
Smartphone with SIM




Communication Devices:
Office Coomunication Devices:
On Field Communication Devices:
Video Conferencing resources:

                  New to ADSelfService Plus?