meaning of Form: in new GlideOverlay()
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2016 03:53 AM
I have two sample scripts:
var d = new GlideOverlay({
title: 'Risk Assessment',
form: 'survey_take'
});
d.setPreference("sysparm_task_assessment", taskAsmtID);
d.setPreference("sysparm_survey", assessmentName);
d.setPreference("sysparm_survey_update", "false");
d.render();
}
AND
new GlideOverlay({
title: new GwtMessage().getMessage('Run Fix Script'),
form: 'run_fix_script_dialog',
preferences: {
'sysparm_script_name': gr.u_notes,
'sysparm_sys_id': gr.sys_id
},
width: 600
}).render();
Ques:
1) What this form: element is?
2) does it belong to any "UI Page" or Script. If yes, where I can find Form?
3) Is this form: 'run_fix_script_dialog', is only dummy name???

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2016 04:15 AM
I have not seen a GlideOverlay before. But it's very similar to a GlideDialogWindow: http://wiki.servicenow.com/index.php?title=Displaying_a_Custom_Dialog#gsc.tab=0
form is probably a UI Page. You can look up the survey_take UI Page, but not the run_fix_script_dialog one. But this might just mean that we don't have access to that particular record.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-22-2016 05:12 AM
Thanks!!
Yes it seems run_fix_script_dialog not accessible. Even its not re-usable also