I want to change some visibility of created fields. I want to change background color of mandatory fields only. Is it possible only using css or I need JS also. As mandatory fields depends on reqd fields selection. If its possible, then please suggest me how to do this.
@NCP yea… that’s true I guess. Your given code example is good but it’s not dynamic. It’ll always make item_code field red, even if I remove mandatory tick from this field option.
@519_Hamza_Habeeb If you want to change Child Table Doctype’s field’s BG color, that’s will be easy. But child tables cell BG color change will be very critical and long process I guess.
Thank you for posting this. I was surprised at how long it took to find a working syntax.
Cheers!
Unfortunately we cant change the properties of read-only fields and it seems link fields or at least the customer field in Sales Invoice is not influenced by this script