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?
the below client script works with me for read-only field “notes”
–
frappe.ui.form.on(‘Document Translation Service Request’, {
refresh(frm) {
frm.fields_dict.notes.$wrapper
.find(‘.control-value’)
.css({
‘font-size’: ‘16px’,
‘color’: ‘red’,
‘font-weight’: ‘bold’
});
}
});