How to change lookup box color also when the field is readonly.

DhanakoddiT
Tera Contributor

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.
 

DhanakoddiT_0-1712310101565.png

 

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