Vijaykumar2
Mega Expert
Options
- Post History
- Subscribe to RSS Feed
- Mark as New
- Mark as Read
- Bookmark
- Subscribe
- Printer Friendly Page
- Report Inappropriate Content
on 09-28-2021 05:49 AM
Displays & Removes a floating form message(s) at a top of the form detail section :
Method : g_form.addFormMessage(String message, String type);
- This method helps to display message(s) at the top of a form of mentioned type. String message : Message to display. String type : Type of message (error, info, warning).
Ex :
g_form.addFormMessage('error message','error');
g_form.addFormMessage('Warning message','warning');
g_form.addFormMessage('Incident record successfully updated','info');
Method : g_form.clearFormMessage(String type);
- This method helps to remove display message(s) of mentioned type. String type : Type of message (error, info, warning).
Ex :
g_form.addFormMessage('error'); g_form.addFormMessage('warning'); g_form.addFormMessage('info');
Method : g_form.clearAllFormMessage();
- This method helps to remove all display messages of any type.
Ex :
g_form.clearAllFormMessages();
Note : Type is none.
- 1,559 Views
Comments
Community Alums
Not applicable
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
09-28-2021
06:37 AM
Please note that in second example, g_form.clearFormMessage() function should be used.
Vijaykumar2
Mega Expert
- Mark as Read
- Mark as New
- Bookmark
- Permalink
- Report Inappropriate Content
10-11-2021
08:10 AM
We can use.
Thanks,
Vijay
