How do I submit a Document using JS?

you will need to call again the submit method

callback: function(r){
    frappe.call({
        "method": "frappe.client.submit",
        "args": {
              "doctype": res.message.doctype,
              "docname": res.message.name
        }
    })
}
6 Likes