Creating alert message for post button for Additional comments and worknotes
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2024 05:13 AM
Hello All,
Whenever the assigned to user is trying to put some comments either under additional comments or work notes field, and they hit "Post" to post their comment. I am trying to create an alert message once they click on post button.
Is it possible to do it. Any help is much appreciated.
Thanks in advance,
Soham
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-21-2024 07:29 AM - edited 03-21-2024 07:30 AM
Hi @Soham4
I understand you want to display alert message on Worknote Post button cliick. For this you can check this post on community. I believe you might find your answer. You might have to work with some DOM manupulations.
And for simply saving or updating record you can implement client script.
2.
Client script of type onSubmit. on the table. and you can have a small script that check comments field or worknote field is not empty than only it shows alert message
function onSubmit() {
//Type appropriate comment here, and begin script below
var workNotesValue = g_form.getValue('work_notes');
var comments = g_form.getValue('comments');
if (workNotesValue !="" || comments!="") {
alert('Message');
g_form.clearMessages();
}
}
Regards,
Akshay