How to put g_form.hideAllFieldMsgs() in use

Community Alums
Not applicable

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

8 REPLIES 8

Community Alums
Not applicable

Hi,

g_form.addInfoMessage(g_form.getOption('state', '1').text);

 g_form.hideFieldMsg('state');// I think there is no need of this

g_form.hideFieldMsg('state',true) // this will work for you

Community Alums
Not applicable

It didn't work Priyam

Community Alums
Not applicable

Okay, Dave

Thank You

Community Alums
Not applicable

Hi Dave,

Please close the thread by making an answer correct if you find any so that others can also get benefit from that.

 

Thanks & Regards,

Priyam Kaushik