I need to create a frappe warning message is appear to the user after clicking submit, but the submitting process depends on what is selected, if (Yes) the complete process if (No) stop the submitting process.
I searched for before_workflow_action but as I searched it used doctype that uses Workflow doctype and I didn’t use workflow in my sales invoice
before_submit:function(frm){
frappe.confirm(
'Are you sure to complete this process?',
function(){
window.close();
// continue with submit process
},
function(){
// reject submit process
}
)
}