How to hide the info message for Change Request - Approval - Risk approvals?

Happy S
Tera Expert

As per subject I have configured a Business Rule where a user cannot be approving for both the Technical Approvals and the Risk Approvals.

 

The Business Rule is working as expected except for this info message which is I am unable to get rid of.

HappyS_0-1727429872109.png

Have tried the gs.flushMessages() but somehow its not working

 

Any idea how to fix it? The info message is due to the UI action - Approve and its a high priority file type so I do not want to modify it..

The message is triggered by the OOB script includes - ApprovalUserFeedback

 

 

current.state='approved';
current.update();
new ApprovalUserFeedback().approved(current);

 

 

 

3 REPLIES 3

Brad Bowman
Kilo Patron
Kilo Patron

If you don't want this info message to display when approving a change request, you can copy the UI Action, adding to the condition for your version to only show on approvals for change request records, then add the opposite to the condition of the original so that both don't appear.

 

The Script of your version will call a copy of the ApprovalUserFeedback Script Include which you can customize to omit the info message

thank you for the reply..

 

if I understand correctly, are you saying that I need to create a duplicate copy of the UI action with customized logic and use it to replace the OOB UI action?

Yes, so find the correct Approve action, out of the 2 records with this name on the sysapproval_approver table that are a Form Button in the Global app - or maybe you have more or less, change the Name slightly temporarily, then add to or replace part of the condition with

current.source_table=='change_request'

then Insert and Stay.  Check an approval for a Change to see if you now have 2 buttons, then you know you copied the correct one, then you can add to the condition of the original

current.source_table!='change_request'

and continue customizing your version of the UI Action