What does gel() do? Is the documentation for it some where?

DrewW
Mega Sage
Mega Sage

I am trying to build a UI page to create a catalog task from an incident and while looking over the UI pages in the system I keep seeing things like "var uName = gel('hidden_user_name').value;".

So my question is what does gel() do? I can not seam to find any documentation for it.

4 REPLIES 4

CapaJC
ServiceNow Employee
ServiceNow Employee

It might be documented on the Client Scripts wiki article (don't know), but it is equivalent to document.getElementById() and you pass in the id of the element you want.


There's a brief mention of it here:

http://wiki.service-now.com/index.php?title=Client_Scripts#How_do_I_reference_a_field_on_the_form.3F


Thanks for the info.

I also was looking at the "GlidePaneForm" and found the example, can you make a GlidePaneForm show a UI page? If not is there another one that will?

Thanks for the help.


Ok, so when you use the GlidePaneForm you use the name of your UI page instead of the table.