We've updated the ServiceNow Community Code of Conduct, adding guidelines around AI usage, professionalism, and content violations. Read more

I need to hide "edit" ui action from one table

YashasM
Tera Contributor

I have duplicated the OTB edit ui action and

new GlideRecord(current.getTableName())).canCreate() && RP.isManyToMany() && !RP.getListControl().isOmitEditButton() && current.getTablename()!='u_service_option'; This is not working 

1 ACCEPTED SOLUTION

@YashasM 

So you are on Service Option form and Subscribers is related list table

Then why not use Configure List Control and Hide the Edit button from there?

Why to override OOTB UI action?

💡 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

View solution in original post

11 REPLIES 11

@YashasM 

any update to above comment?

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

Hello @Ankur Bawiskar , Please find the screenshot of the ui action

 
 

Screenshot 2026-03-04 162020.png

@YashasM 

so you are on which form? Subscribers or Service Option?

 

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

I am on Service option 

@YashasM 

So you are on Service Option form and Subscribers is related list table

Then why not use Configure List Control and Hide the Edit button from there?

Why to override OOTB UI action?

💡 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