what is 'showServiceType'?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2025 10:09 PM
Hi All,
Can someone please help me understand what is 'showServiceType.showTheFields', is it a OOB Glide form method? If it is a custom method, how and where can i check the definition?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2025 10:17 PM
Hi @Ankita9793
As per the official doc GlideForm (g_form)
showServiceType is not OOB method. Also, we can't add any new methods to the g_form class.
Regards,
Siva
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-21-2025 10:17 PM
Hello @Ankita9793 ,
As per my knowledge, showServiceType.showTheFields' is not an Out-of-the-Box (OOB) Glide form method. The standard g_form object in ServiceNow has methods like setVisible(), setReadOnly(), setMandatory(), hideRelatedList(), etc., but not a nested structure like showServiceType.showTheFields.
This indicates that It showServiceType.showTheFields is a custom method.
Below is the helpful article -
https://www.servicenow.com/community/itsm-articles/glide-form-methods-in-servicenow/ta-p/2788713
Thank you.