I have a On Form Submit Execute Script rule to update the ticket description.
However when the Requester is submitting the ticket it appears to apply it twice, the initial and then again after it's shown the Suggestions pop up.
/*To update value of Description field*/
var old_description_content=$CS.getDescription();
var a=$CS.getValue("WorkOrder_Fields_9001_UDF_CHAR3"); /* Contact Name*/
var b=$CS.getValue("WorkOrder_Fields_9001_UDF_CHAR4"); /* Alternative Contact Number*/
/*To set the new value of Description field*/
var new_description_content=
"Contact: "+a+" - "+b+"<br>"+
"Description of Issue:"+"<br>"+old_description_content;
/* By wrapping below code under $CS.isFormSubmit, it is ensured that description value will be updated only once.*/
if($CS.isFormSubmit()){
$CS.setDescription(new_description_content);
}