I want to create a sequence of doctypes and run this sequence for user. For example, user have to fill sequence of doctypes:
Sequence = [Project, Item, …]
- Show Project doctype
- After submit show Item doctype
Have you guys any idea how to do this?
You can use:
frappe.set_route("Form", "Item","New Item 1");
on_submit hook of project.js
the same for the next doctype, you would set route in
on_submit of the Item and so on.
You can also restrict the operation to only happen when a certain variable is passed so that chaining doesn’t happen always.