Hi All,
I'm trying to disable standard approve and reject buttons in expense report based of certain conditions in Uservent Beforeload entry point,
I'm able to disable the buttons with the help of context.form.getButton({ id: 'approve' }).isDisabled=true when context type=view, but when im editing the record approve and rejects buttons are not disabled
the above code is disabling buttons in View mode but buttons are enabled in edit mode
does anyone know the reason for this