Hi,
I am having a issue with a script I have been running to populate the subject field with more information after the incident has been submitted.
What I want it to do is pull the information that the requester has put into the Subject field and then insert "Incident - CATEGORY -" in front of it (and also pull the Category from its field and insert that too.
I am using the script below on form submission but it inserts the "Incident - Category -" part twice when it submits, can you see an obvious thing wrong with the script?
var x=$CS.getValue("SUBJECT")
var y=$CS.getText("CATEGORY")
$CS.setValue("SUBJECT" ,"Incident-" + y + "-" + x)
(submit) Send