i m unable to add button to project doctype i can add in other documents but not in project why is that so and what is the possible solution
frappe.ui.form.on(‘Project’, {
refresh: function (frm) {
frm.add_custom_button(__('Go to Home'), function () {
// Redirect the user to the home page
window.location.href = '/app/home';
});
},
});
Hello @Mubasher
please ensure few things like
- script is correctly linked
- check error in console tab
- clear cache and reload
ok
script is fine i had another script that was making issue