How to hide the submit button from salesorder


i would like to hide the submit button from sales order


i tried this Need a custom to hide the submit button

when i pasted below code on_load of sales_order.js

cur_frm.cscript.custom_refresh = function() {

i am getting this error on console of browser

```Uncaught (in promise) TypeError: Cannot read property 'appframe' of undefined
    at init.cur_frm.cscript.custom_refresh (eval at setup (script_manager.js:155), <anonymous>:776:18)```

What is your use case here?

If you don’t want other users to submit the Sales Order, simply remove the submit option from their role.

1 Like