Can we use g_form,g_user in Client script of UI page???

sapna_sagar
Kilo Expert

Hi,

Can we use g_form,g_user in Client script section of UI page as we do in normal client script??

3 REPLIES 3

Srinivas Balusu
Kilo Guru

Yes


abilash_017
Mega Guru

Hi Sapna,



Yes we can use it. here is an example for it.



1.JPG



Thank you.



Hit: Like or Helpful/Correct based on the impact.


rakesh_ravi
ServiceNow Employee
ServiceNow Employee

I will answer your question in two parts separately for g_user and g_form.



g_user


You can use it anywhere.



g_form


If you are building a standalone UI page which is not used as a pop up on a table form, you cannot use this.



g_form is only available when a table or a catalog form loads on the browser. Once the table or catalog form loads, you can use g_form in the UI page which is used as a pop on top of the form. It can be GlideDialogWindow.



Let me know in case you need more info.



Hope this helps.