We have one case where we want to use some code on submit of document on js side like
on_submit: function(frm) {
// logic
}
It works perfectly fine if the document is simple and submittable, if we apply any workflow to a document where we have approved state and on approve we are submitting document but above trigger does not execute don’t know why