wants to restrict to edit state field on list view

lakng
Tera Contributor

my concern here is ,

there are itil users they can edit the state field on list view.

now the requirement is the itil users should not change the state field when it is in closed state.

only admin should edit when the state is closed from list view.

how can i acheive this .

2 REPLIES 2

Matthew Swarts
Tera Guru

Hello,

You will want to create a list-edit ACL that only allows edit if the state does not equal Closed and be sure you set "itil" as the role and have the admin override checkbox marked true.

 

This should allow the itil users the ability to edit the state field on the List view only if the record is not already in a Closed state.

Cody Smith _ Cl
Tera Guru

Hello Lakng,

You should make an onLoad or onChange client script for that field. 

Try something like this

 

function onLoad() {

   if(g_form.getValue('your field') == 'Your value'){
      if (!g_user.hasRole('Admin')) {
        g_form.setReadOnly('your field',true);
     }
   }

}

 

 

 

If my answer was helpful, or solved your issue, please mark it as Helpful / Correct.
Thank you,
Cody Smith