- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2024 04:15 AM
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.
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2024 04:40 AM - edited 12-31-2024 04:42 AM
@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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2024 04:33 AM - edited 12-31-2024 04:37 AM
@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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2024 04:37 AM - edited 12-31-2024 04:38 AM
The message doesn't go away. It stays there. If it is vanishing, I understand. Of course I refreshed.
Regards
Suman P.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2024 04:40 AM - edited 12-31-2024 04:42 AM
@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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-31-2024 04:45 AM
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.
Regards
Suman P.