I just wrote this custom script to make the description field of ToDo, read-only but it does not seem to be working.
frappe.ui.form.on(‘ToDo’, {
refresh: function(frm) {
frm.set_df_property(‘description’, ‘read_only’, frm.doc.__islocal ? 0 : 1);
}
});
Did you try using customize form?
1 Like
Thank you it worked…I have another question Is there any way to make the comments in the timeline of a form(ex-sales invoice) read-only (i.e once a user writes a comment he/she won’t be able to edit it).
PS-thanks in advance
It’s read only for other users, other than one who created the comment.
You need to customize if you want it to be read-only for creator.
Ya I need it to be read only for the creator.Please guide me how to customize it
I am not the right person for this.
You will need a custom app, and then code to override core functionality.