Error "g_form is undefined" in UI Page client script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2015 01:06 AM
Hi All,
I am trying to implement the functionality, "When a user clicks on a image in a UI page, its needs to display a dialog box asking for comments, On providing comments, its needs to invoke certain action." something like call back from GlideDialogWindow, not form.
To display comments page, I created another UI page and calling that UI page by using GlideDialogWindow. But in the comments page, when the user clicks on "OK" button, I am getting the error, "g_form is undefined". I can see in wiki that it's a global object.
Can you please help me here, with the solution to this issue.
I am trying an example mentioned in bottom of below page. In the client script validation method, I am getting this error.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2015 01:49 AM
doest ur UI page has <g:ui_form> tags...if not add them
http://wiki.servicenow.com/index.php?title=UI_Pages#UI_Pages_Form&gsc.tab=0
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2015 02:04 AM
Yes Anurag,
Both Parent page and dialog page have g:ui_form tags defined.
I am trying to read back "comments" entered in dialog window to the parent page. Is there any example, which has this functionality?
Thanks
Rami Reddy
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2015 02:27 AM
the link i pasted above has the eg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎12-22-2015 03:04 AM
Hi Anurag,
Sorry, It seems to be the link doesn't have functionality of "Getting Property values from Called UI page back to parent UI page"