


RemoveDecoration(string fieldname, string icon, string title)Ģ. G_form.addDecoration('requester', 'icon-star', 'VIP User') Īnd If you want to remove decoration then you can use: Methods which are widely used while doing coding client script are listed below:ġ.addDecoration(string fieldname, string icon, string title) for example - let's say we have to add star icon in front of the requestor label so that it can be treated as VIP user, then we can use this function as mentioned below: There are lots of glideform methods in servicenow. G_form.addErrorMessage("Please fill date in required format") There is no need to initialize glide form api as there is no constructor and we can call or access methods using global object g_form as mentioned in below example: We can only use glide form methods on client side (Client Scripts) to make custom changes. What is Glide Form API and what are glideform methods in ServiceNow? GlideForm API is a javascript class which provides methods to customize forms. we will focus on ServiceNow GlideForm API and glideform methods in ServiceNow. In ServiceNow we have 6 API categories, whereas in this article we will learn Client Category API i.e. So, Programmer can use API when he needs to perform some task etc.Īctually, it is not possible to build each and everything again and again, so API solved this problem and programmers can use already created API to perform the required task. What is API ? API is basically a tool set (such as class with methods, java script file etc) which programmer can use to create software, to create some functionality (for example displaying google map, triggering google login, payment gateways, window scroll bars, and many more etc).
