How i can route on list view side button

i want to route a doctype on button in list view side. how i can

Hi @briandrogo,

Please check the syntax.

frappe.listview_settings['Supplier'] = {
    onload : function(listview) {"Purchase Invoice"), () => {
            frappe.set_route("Form", "Purchase Invoice", 'new_purchase_invoice');


When click on the button then open a new purchase invoice.

Please set your scenario according.

Thank You!

thanks buddy… i am new in frappe so this kind of problem i am facing.

Hi @briandrogo,

If you want to learn the client script then please check it.

Another reference:

I hope this helps.

Thank You!

1 Like