It is possible to disable a button in the ClientSc...
# suitescript
b
It is possible to disable a button in the ClientScript?
s
The serverWidget module is not available client side; you could certainly hide it with DOM manipulation (not technically supported)
Also, it doesn't appear disabling native buttons is supported serverside, either
b
Right, thanks. The only thing I was able to do is to modify the css so far. const feeButton = document.getElementById('buttonId').style.display = 'none';
But that's lame ^^
s
Whats lame about it
If you inspect a disabled button, you can probably just set the styling that whatever the NS api would do.
b
It's just that I make It disappear after the customer click on It. The user experience Is a little odd, they'll have to get used to It.
I see, yes clever.
s
You can hide a disabled button but cant disable a button by hiding it
135 Views