The Now Platform® Washington DC release is live. Watch now!

Help
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

meaning of Form: in new GlideOverlay()

kirtit
Tera Contributor

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???

2 REPLIES 2

Geoffrey2
ServiceNow Employee
ServiceNow Employee

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.


kirtit
Tera Contributor

Thanks!!



Yes it seems run_fix_script_dialog not accessible. Even its not re-usable also