Vijaykumar2
Mega Expert

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.
Comments
Not applicable

Please note that in second example, g_form.clearFormMessage() function should be used.

Vijaykumar2
Mega Expert

We can use.

Thanks,

Vijay

Version history
Last update:
‎09-28-2021 05:49 AM
Updated by: