How to put g_form.hideAllFieldMsgs() in use
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2021 04:39 AM
Hello,
I am trying to put g_form.hideAllFieldMsgs in use but am failing. Kindly help.
g_form.addInfoMessage(g_form.getOption('state', '1').text);
g_form.hideAllFieldMsgs();
I am still seeing 'New' message on top.
Regards
- Labels:
-
Change Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2021 04:45 AM
You should use g_form.clearMessages();
Mark my answer helpfull or correct if it helps
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2021 04:46 AM
Hi,
Hides info and error messages for a single field.
Eg:g_form.hideFieldMsg('impact', true);
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2021 04:47 AM
You can use this g_form.hideAllFieldMsgs(); to hide all the field messages.
Hope these two answers will definitely help you and provide you a better understanding of the concept of both methods.
Regards,
Priyam Kaushik
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-12-2021 04:58 AM
None of the above worked. I used
g_form.addInfoMessage(g_form.getOption('state', '1').text);
g_form.hideFieldMsg('state');
g_form.hideFieldMsg('state',true)
I see 'New'
Regards