i have add status options
when status is converted and i edit any field and save it then automatically staus changed from converted to Opportunity identified
how this is possible
Apply the client script for Opportunity doctype.
frappe.ui.form.on('Opportunity', {
validate: function(frm) {
if (frm.doc.status === 'Converted') {
frm.set_value('status', 'Opportunity identified');
}
}
});
hi @ncp this is not happen in opportunity doctype in lead doctype
actually i removed status options and add my options in to it
now this lead is converted
and now i change gender field from Male to Female and save it
see status field change automatically from converted to Opportunity idetified
If you want in lead doctype then apply it in lead doctype. you have to set your own logic according to the scenario. I think you have to take some knowledge of client script. So you will never know, we will keep giving the script and you will just apply, and never know.