@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