ACLs based on the views

Poorva Bhawsar
Mega Sage

Hi Community,

 

I need to provide write access to few fields based on some roles. I have 3 views which is visible based on roles. I have created field level write acl for xyz field and i want it to be writable only to 2 views but its writable for other view also.

For eg. xyz, abc and pqr roles are there and xyz, abc and pqr views are also there. I want xyz and abc roles users to write on xyz field on xyz and abc views only but xyz and abc roles users are able to write xyz field on pqr view also. But they shouldnt be able to write on xyz field of pqr view. How to restrict this.

 

Thanks

2 REPLIES 2

Eshwar Reddy
Kilo Sage

Hi @Poorva Bhawsar 

You can create an onLoad client script and Uncheck the Global check box and set the view name in the View field. and use the script to hide the field.

 

function onLoad() {
	g_form.setVisible('YOUR_FIELD_NAME', false);
   
}


Thanks 
Eshwar 

I dont want to hide the field. I want to make few fields editable and read only based on the views.