Try ERPNext Try Frappe Cloud Buy Support Partners Foundation

[SOLVED] How to open doctype B after saving doctype A?

Hi,

I want to write a script in which I will be able to perform step-by-step transaction.
I have a TRANSACTION and 4 DOCTYPES which are one big doctype (~150 fields) split logically into 4 smaller.

When I fill form for doctype A I want to move to B then to C then to D. Prefferably to link this operation to save button in each doctype. How can I achieve such?

Cheers,
Marcin

@Marcin_Walkow,

you can use frappe.set_route("Form", doctype, docname) method in JS script

Thanks, Makarand

@makarand_b - thank you, when you wrote the proper command I was able to see similar topic:

https://discuss.erpnext.com/t/link-to-another-doctype-with-button-field/6854

and mighty cheatsheet :slight_smile: :
https://github.com/frappe/frappe/wiki/Developer-Cheatsheet
Please close the topic.

1 Like