How to clear the info Message after Submit.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2019 03:32 PM
We have onChange Client Script that adds an info message when a incident moves to State is On Hold and On Hold Reason is Pending Client Action.
We trying clear that info Message after the save or update. Our Current Approach is an onSubmit Client Script using clearMessages but this not achieving the desired effect. We tried onLoad Client Script instead but no effect.
Please find the attachments of the scripts.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2019 03:35 PM
You need to use below to hide all messages in client script.
g_form.hideAllFieldMsgs();
Regards,
Sachin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2019 03:53 PM

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2019 03:58 PM
Can you try by adding below if loop in the onChange client script
if (isLoading || newValue == '') {
g_form.hideFieldMsg('comments', true);
return;
}
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-30-2019 04:05 PM
The comments portion of the Client Script is unrelated. it is simply trying to make the field mandatory prior to submission and and not mandatory after submission.