how to disable list edit for reference fields

Deepthi13
Tera Expert

hi team,

how to disable list edit for cmdb_ci_computer.location.country on computer table list layout. please suggest

1 ACCEPTED SOLUTION

Hi Deepthi,

Then I believe in that case you still need to write ACL field level from location table. In the advanced section using script try to do this

var index = gs.action.getGlideURI().toString().indexOf('location_list');

if(index == -1){

// it means it is not location table list layout so set answer as false

answer = false;

}

else{

answer = true; // allow edit when list layout of location table is opened

}

Mark Correct if this solves your issue and also mark Helpful if you find my response worthy based on the impact.
Thanks
Ankur

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

View solution in original post

11 REPLIES 11

Hi ankur, thanks for explanation

Thank you, for taking the time to post the complete working code 🙂