type of message

tyffanie_rbr
Tera Contributor

Hi all;

 

I use the showFieldMsg() function for On change function and I would like to know the types of message to put in my function (like error, etc.. ).

ex:

g_form.showFieldMsg('u_environment_label',getMessage('change.rp.environment_reminder'),'error');

 

Thanks

1 ACCEPTED SOLUTION

Sagar Pagar
Tera Patron

Hi @tyffanie_rbr,

 

You can show "Info", "Error" or "Warning" type of messages. by default "info" type will be shown.

For reference: Display field messages 

 

If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers.
Thanks,
Sagar Pagar

The world works with ServiceNow

View solution in original post

2 REPLIES 2

Sagar Pagar
Tera Patron

Hi @tyffanie_rbr,

 

You can show "Info", "Error" or "Warning" type of messages. by default "info" type will be shown.

For reference: Display field messages 

 

If my response helps to solve your issue. Kindly mark it as helpful & correct. It will be helpful for future readers.
Thanks,
Sagar Pagar

The world works with ServiceNow

Ankur Bawiskar
Tera Patron
Tera Patron

@tyffanie_rbr 

share the browser console error

If my response helped please mark it correct and close the thread so that it benefits future readers.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader