Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

Prevent user to reject approval from SOW

swapnilsoni
Tera Contributor

Hello All,

 

There is a requirement to prevent user to reject approval from related list without putting the comment of rejection in native ui and SOW both.

So in native ui i created oncelledit client script to add one popup to put comment when someone rejecting from list view and mapping it in approval comment. (it is working fine)

But in SOW this client script is not working. so i make the modification in sys_ux_list table for My approvals and All approvals. (it is also working)

Now the issue is, in SOW only if someone open change request or RITM and in related records they open approvals and from there if they rejects it, then it is rejecting. so how can i prevent user to reject approval permanently from list view in SOW. 

 

Please suggest some solution. i am struggling for this in last week. Thanks in advance.

12 REPLIES 12

Ankur Bawiskar
Tera Patron

@swapnilsoni 

better to use data policy or before update BR

that should work for you

💡 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

hi @Ankur Bawiskar 

I tried using before business rule so setabortaction(true) is working there but in SOW infomessage is not working there so it might confused user why this is not changing. So any option to show message in sow when they change state?

@swapnilsoni 

so you are saying BR is working fine but info message is not coming?

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

yes it is aborting to change the state. but info message is not soming in SOW. can you tell me how we can do that?

Badrinarayan
Kilo Sage

Hi @swapnilsoni  , 

 

Why cant you use List Edit ACL , so that you cannot modify a specific field on the form 

use the reference photo for your understanding

 

You can create an ACL (Access Control) to prevent inline editing of the State field directly from the list view — this works across both Native UI and SOW.

Steps to Create the ACL:

Field Value
Typerecord
Operation list edit
Tablesysapproval_approver (Approval table)
Fieldstate (the field you don't want edited from list)
Roles(Leave empty — applies to everyone)
  

Screenshot 2026-03-31 at 1.10.22 PM.png

Dont give any roles for that acl

Use the proper table like "approval" table and select the field which you dont want to edit 

 

output will be like

 

Screenshot 2026-03-31 at 1.14.47 PM.png

 

Let me know if your issue is resolved

 

Thanks regards

Badrinarayan