I was using frappe develop branch to build my custom app. in that i used
frappe.ui.form.on("CRM Task", {
refresh(frm) {
},
after_save: function (frm) {
// Override redirection after save
if (frm.is_new()) {
// Refresh or close the dialog if in quick entry
if (frm.quick_entry) {
frm.quick_entry.close();
}
}
}
});
this stop redirecting which was good.
now i am working with frappe v-15 stable branch this code is not working there.
i am using
frappe.ui.form.on("CRM Task", {
after_save: function(frm) {
if (frm.is_quick_entry) {
frappe.quick_entry_dialog.hide();
frappe.show_alert({message: __("Saved successfully"), indicator: "green"});
}
}
});
both code are not working.
@NCP, @shariquerik Please help me to stop quick entry popup redirection in v-15