What ACL to use to hide few columns of parent table in some of its child tables?

Ashish71
Tera Contributor

HI All,

There is a requirement that there is a parent table that has some fields. Those fields i need to hide from some of its child tables list view and personalized column list view.

I tried with read ACL but the field is still visible yet not editable. Also i checked with add_to_list operation but for that we need to disable one UI policy and need to modify one SI that i am not sure i can modify

Please let me any solutions for this??

 

4 REPLIES 4

Ankur Bawiskar
Tera Patron
Tera Patron

Hi,

if you don't want those to be shown on child form then child table field level READ ACL is required

what ACL you configured?

Regards
Ankur

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

Ashish71
Tera Contributor

Hi,

Here what i have done is in my PD instance i created a custom field on parent table that is then inherited by all its child tables.

So for eg, there are more than 50 child tables for that parent table and i want that field not to be visible on 7-8 child tables list view and personalized column [not on the form]

Doing it for all the 50+ child tables might be a lengthy process

Hi,

then you can do this

1) create onLoad client script on parent table

Inherited checkbox - True

Script: give those 7-8 table names in script

function onLoad(){
	
	var tableName = g_form.getTableName();
	if(tableName == 'u_child1' || tableName == 'u_child2' || tableName == 'u_child3'){
		// hide that field
	}
	
}

Regards
Ankur

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

Ashish71
Tera Contributor

I took operation as Read, admin override as false and just mention the tables name in the condition