Error "g_form is undefined" in UI Page client script

ramireddy
Mega Guru

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.

Displaying a Custom Dialog - ServiceNow Wiki

5 REPLIES 5

Anurag Tripathi
Mega Patron
Mega Patron

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


-Anurag

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


the link i pasted above has the eg


-Anurag

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"