Hi,
I am working on a request form submission script, and for whatever reason, parts of the javascript code seem to be executing twice. I cannot understand what I am doing wrong. [Note, I tried assigning each 'getvalue' statement to variables first, then the variables to the 'set' statements before trying to embed the getvalue statements directly. There was no difference.
Code:
$CS.setDescription("Please approve request for access to " + $CS.getValue("ServiceReq_2701_UDF_CHAR4") + ", required for the following reason: " + $CS.getValue("GUDF_CHAR11"));
$CS.setValue("SUBJECT",$CS.getValue("SUBJECT") + " for " + $CS.getValue("ServiceReq_2701_UDF_CHAR4"));
The result is the subject line has the UDF_CHAR4 value added twice:
Before script, subject = "Folder Access Request"
After script, subject = "Folder Access Request for g:\mrh90 for g:\mrh90"
I also tried adding an Alert statement before the last line and the alert pop-up appeared twice.
Thankyou.