How to Remove Standard Button

I just want to remove the inside of create Opportunity button in lead doc-type

I used below code

cur_frm.remove_custom_button("Opportunity","Create")

but its not work

Hi @Manikandaprabhu,

Please apply it.

frappe.ui.form.on('Lead', {
    refresh(frm) {
    setTimeout(() => {
        frm.remove_custom_button('Opportunity', 'Create');
        }, 10);
    }
});

Then reload and check it.

Thank You!

2 Likes