How to change lookup box color also when the field is readonly.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-05-2024 02:25 AM - edited 04-05-2024 02:42 AM
Hello Team,
I have a requirement to make reference field read only. So I have added below code in UI page.
gel("sys_display.knowledge_category").readOnly = true;
document.getElementById('lookup.knowledge_category').style.visibility = "hidden";
But it is not changing the color of lookup box. See the "Select Category" field in below image.
If anyone know the solution to make the lookup box color also as read only color, please tell me. And this should be changed back to normal when the field is not read only.
Thanks!
0 REPLIES 0