to select ↑↓ to navigate
Docs

Docs

Hide Buttons in Form View

In a submitted Sales Order, you can see buttons like Update Items, Status. Also there are many options under 'Create' button.

Sales Order

You can write custom script as shown below to hide these buttons.


ivendnext.ui.form.on('Sales Order', {
    refresh(frm) {
        setTimeout(() => {
            frm.remove_custom_button('Update Items');
            frm.remove_custom_button('Close', 'Status');
            frm.remove_custom_button('Work Order', 'Make');
        }, 10);
    }
});
  1. Custom Field In A Form
Last updated 3 weeks ago
Was this helpful?
Thanks!