Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-31-2022 12:08 AM
Thanks but no luck yet. I've tried to apply the script to the catalog item script area and directly to Catalog Client Script with the On Submit function but didn't work.
Updated script below but didn't work either.
function onSubmit() {
var incRec = new GlideRecord("incident");
if(producer.u_choice_1 == "EAM"){
incRec.initialize();
incRec.u_description = 'short_description';
incRec.comments = '[code]' + producer.u_description + '[/code]';
incRec.u_status = 'Open';
incRec.u_choice_1 = "producer.u_choice_1";
}
}