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

Thank you for this suggestion , itseems this will work

Mariuisd
Giga Contributor

Use this condition in your duplicated UI action to hide Edit on u_service_option:

current.getTableName() != 'u_service_option'

Rename the duplicated UI action to ensure it applies only to your table.