The following code will change my text only if it is not marked read only in my custom form. How can I force the read only text to red using the css override?
frappe.ui.form.on("Document", "onload", function(frm,cdt,cdn) {
$('input[data-fieldname="release_status"]').css("color","red")
});
Here is the field in color when it is not read only:
Here is the field read only: