Script to disable a button

Script to disable a button

I need to know if I can gray out or disable a button