how to add link after creating a custom button in frappe
Is this what you’re after?
Form:
frm.add_custom_button(__("Auto Repeat"), function () {
frappe.set_route("Form", "Auto Repeat", { reference_document: frm.doc.name }); /
}, __("Go to"));
List:
frm.add_custom_button(__("Sales Invoices"), function () {
frappe.set_route("List", "Sales Invoice");
}, __("Go to"));
File or URL:
frm.add_custom_button(__("Terms & Conditions"), function () {
window.open("/private/files/Terms and Conditions.pdf");
}, __("Go to"));
Thanx for this really means it. But after applying this I can’t link any information in tht button.
If you post your code and some more context it could help.