Actions and links Guide?

Hi,Hope everyone is doing great can someone guide me how i can set a button in a doctype togoto other documets like in item doctype i want a button to goto item price doctype thanks

@mubasher-hasan

frm.add_custom_button(__(“Go to Item”), function () {
frappe.set_route(“Form”, “Item”, frm.doc.item_name);
});

is it a client side script


any information about how to use these

@mubasher-hasan check this Actions and Links

i saw it but the code is not working @Jeel

image

@mubasher-hasan


you can take refrence from schedule job type doctype

how did you get the route of action??

@mubasher-hasan route is path of your function

what will be the path for items

can you provide me with the routes for item doctype that
there should be a button to goto item price

@mubasher-hasan check this What is the Actions section for in DocType and how can we use it?