Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Need to hide "Edit" button from Approval Related List in SOW view

SM123
Tera Expert

Hello All,

URGENT : OOB we don't have approval related list EDIT button so i created Edit button with the help of Action assignment 

 

function onClick() {
	var _strLink = 
		'/sys_m2m_template.do?' +
		'sys_is_list=true&' +
		'sys_is_related_list=true&' +
		'sysparm_collectionID=' + g_form.getUniqueValue() + '&' +
		'sysparm_query=&' +
		'sysparm_referring_url=' + location.pathname + '&' +
		'sysparm_stack=no&' +
		'sys_target=sysapproval_approver&' +
		'sysparm_m2m_ref=sysapproval_approver&' +
		'sysparm_collection_key=sysapproval&' +
		'sysparm_collection_label=Approvers&' +
		'sysparm_collection_related_field=approver&' +
		'sysparm_collection_related_file=sys_user&';

	var win = top.window.open(_strLink, '_self');
	
	win.focus();
}

 

but i want that EDIT button to be visible to only one catalog item. in default view i did it with the omit edit option. i want the same in sow view too. I just want to hide that button for all catalog items except one. Kindly help me with this. 

0 REPLIES 0