Does Button.isDisabled not gray out the button any...
# ask-stanley-ai
c
Does Button.isDisabled not gray out the button anymore?
c
AI generated answer (using internal Slack threads):
Based on the conversations, it appears that the
Button.isDisabled
property in NetSuite does not gray out the button. It only makes the button unclickable. If you want to visually indicate that the button is disabled (i.e., gray it out), you would need to manipulate the CSS. One user suggested changing the class of the button to
pgBntGDis
to achieve this effect. However, please note that manipulating the DOM directly is not technically supported in NetSuite. Also, it's important to note that the
Button.isDisabled
property is not available on the client side. It can only be used server-side. If you need to disable a button based on a field change on the client side, you might need to use regular JavaScript to achieve this, but again, this is not technically supported in NetSuite. ****** Disclaimer: This response was generated by an artificial intelligence assistant based on previous conversations from multiple Slack channels, and may contain inaccuracies or mistakes. ******
Slack thread 1: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.806375444
Slack thread 2: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.802082181
Slack thread 3: here (available only if the original thread was posted in the last 90 days)
Similarity score: 0.790437579
Please provide your feedback on this answer.