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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2010 07:12 AM
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.
- Labels:
-
Incident Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2010 07:28 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2010 08:00 AM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2010 08:00 AM
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.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎01-21-2010 09:05 AM
Ok, so when you use the GlidePaneForm you use the name of your UI page instead of the table.