addFormMessage

Community Alums
Not applicable

Hi,

Looks like new methods have been added in Rome, but never used them, when I try to use them they are not working. Kindly help.

 

g_form.addFormMessage('Test', 'info');
g_form.clearFormMessages('info');
g_form.clearAllFormMessages();
g_form.clearMessages();

 

The message is added, but no matter the clear options I use, it is not getting removed. Kindly help.

 

Regards

Suman P.

 

 

1 ACCEPTED SOLUTION

@Community Alums ,
remove or comment the 4th line (clearFormMessage). Browser would have thrown and error as the method doesn't exist and stopped executing the 5th line. did you find any errors in the console?

 

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

Regards,
Chaitanya

View solution in original post

13 REPLIES 13

@Community Alums ,
g_form.clearFormMessages() method doesn't exist. try g_form.clearMessages()
and I don't see a point of adding message and clearing it at the same time. this doesn't give user the time to look at the message.

I would go with @Ahmmed Ali 's suggestion this leaves the message on the form for 3 seconds and clears it.

 

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

 

Regards,
Chaitanya

Community Alums
Not applicable

The message doesn't go away. It stays there. If it is vanishing, I understand. Of course I refreshed.

 

2.png

 

3.png

 

Regards

Suman P.

@Community Alums ,
remove or comment the 4th line (clearFormMessage). Browser would have thrown and error as the method doesn't exist and stopped executing the 5th line. did you find any errors in the console?

 

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

Regards,
Chaitanya

Community Alums
Not applicable

Hi @Chaitanya ILCR,

 

I'm not sure why they added it if it is not working yet. It is gone once I removed that method.

 

4.png

 

5.png

 

Regards

Suman P.