I want to pass a variable or name to another doctype using set_route() but I could not found any option in the docs . is there any way to pass data from one doctype to another doctype.
let name = "John";
frappe.set_route(`/app/documents/new-documents`)
any help will be much appreciated
Thanks in advance
Thank you @Hardik_Gadesha. This works if I am trying to open an existing entry. However my challenge is that i want to route to a new page to create a new document.
To pass values to a view, use global frappe.route_options. frappe.route_options is data passed to the view to whom control is being passed. For list view, it is a filter. For form, it is a default value.