Disable Button

Hi,

Silly question. Is it possible to disable a button in Lotus Notes, rather than “Hide when”?

In MS, you can disable a button, it then “greys it out” if you know what I mean. The user can still see the button, but can’t click on it.

Is this possible at all in Notes?

Subject: RE: Disable Button

No, but you can always have a second button in the color you want, containing no code, with the inverse hide formula of the active button. (or a graphic that looks like whatever you want and does nothing when clicked).

Subject: RE: Disable Button

Before implementing one of the two suggestions, consider that:

  1. A button with no code behind will still be "clickable’ but to the user, no apparent action will occur, leading to possible confusion and Helpdesk requests

  2. A graphic that looks like a button will not be “clickable” (the button will not move down and up) but will not inherit the sysem color or other visual attributes for widgets and will not look the same across all platforms and may even differ from other buttons on the same platform depending on the user’s settings.

Subject: RE: Disable Button

Thank you for the suggestions. I would rather hide the button then.

Thanks.

Subject: RE: Disable Button

you could also code the button to do nothing if a certain condition is met, likely similar to the code you will use in your hide/when.

@If(user = “John”; @Return(“”); “”);

If the field user = “John” the button will do nothing.

Subject: RE: Disable Button

But that would still not address the first implication mentioned by Cesar.

Subject: RE: Disable Button

well then instead of @Return(“”) he can add @Return(@Prompt([ok]; “Button disabled …”; “You do not have access to run this action”))

Subject: RE: Disable Button

Or you could put it in a controlled access section