Can I use g_form.clearMessages() function on a scoped Service Portal Application, under the client script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2018 02:26 PM
Can I use g_form.clearMessages() function on a scoped Service Portal Application, under the client script?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2018 02:32 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2018 04:47 PM
g_form should be supported for scoped application.
Refer to this thread and might be try g_form.hideFieldMsg
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-19-2018 05:29 PM
Yes.
The GlideForm API provides methods to customize forms. GlideForm.js is the JavaScript class containing the methods. The global object g_form is used to access GlideForm methods. GlideForm methods are only used on the client.
The g_form.clearMessages() method removes all informational and error messages from the top of the form. It removes informational and error messages added with g_form.addInfoMessage() andg_form.addErrorMessage().
Reference: https://docs.servicenow.com/bundle/kingston-application-development/page/app-store/dev_portal/API_reference/GlideForm/concept/c_GlideFormAPI.html