make mandatory additional comments in approval

armanoj
Mega Sage

Hi , 

in approval table make comments mandatory when they get approve , but get another error message along with custom error message  as "Invalid value on Update". Usinge BR I tried to make comments mandatory.

if (gs.nil(comments)) {

        current.setAbortAction(true);
        gs.addErrorMessage('Comments are mandatory when approving or rejecting.');
        return;
    }


is it possible remove that error message.
armanoj_0-1781694154871.png

 



1 ACCEPTED SOLUTION

Ankur Bawiskar
Tera Patron

@armanoj 

from where are the users approving or rejecting?

Portal or native?

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader

View solution in original post

10 REPLIES 10

@armanoj 

then check below

https://www.servicenow.com/community/itsm-articles/howto-enable-mandatory-approval-comments-on-the-s... 

💡 If my response helped, please mark it as correct and close the thread 🔒— this helps future readers find the solution faster! 🙏

Regards,
Ankur
Certified Technical Architect  ||  10x ServiceNow MVP  ||  ServiceNow Community Leader