function onChange(control, oldValue, newValue, isLoading, isTemplate) { if (isLoading || newValue == '') { return; } //Type appropriate comment here, and begin script below conversionDialog(); function conversionDialog() { //Get the values to pass into the dialog var requester = g_form.getReference('u_requester'); var gr = new GlideRecord('sc_cat_item'); if (gr.get(g_form.getReference('u_category').u_catalog_item)) { var item = gr.name; } //Initialize and open the dialog var dialog = new GlideDialogWindow("conversion_dialog"); //Instantiate the dialog containing the UI Page 'add_comments_dialog' dialog.setTitle("Ticket Conversion"); //Set the dialog title dialog.setPreference("catalog_item", item); //Pass the item name to the dialog dialog.render(); //Open the dialog } }
General
Content
Integrations