Hi @lekhnath @NCP
This is my function but the view is like this can’t be editable. May I know the reason why?
frappe.ui.form.on(‘Annual Point Scheme’, {
refresh: function(frm) {
if (frm.doc.workflow_state === “Done”)
frm.add_custom_button(“Reset”, function() {
console.log(frm.doc.workflow_state,‘kkkkkk’);
cur_frm.set_value(“workflow_state”, “Draft”);
},)
}
});