How to submit an inserted document ? #117
-
Beta Was this translation helpful? Give feedback.
Answered by
ruchamahabal
Dec 17, 2025
Replies: 1 comment
-
|
Now with function onSuccess(data) {
studio.call("frappe.client.submit", {doc: data}).then(() => {
customer.value = ""
billingItems.value = []
studio.showToast({ message: "Invoice generated successfully!", type: "success" })
})
}
Output for submit invoice script on checkout button: submit-invoice.mp4 |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
ruchamahabal
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Now with
studio.call(#141) you can write a success script like this calling frappe.client.submitOutput for submit invoice script on checkout button:
submit-invoice.mp4