85 pts.
 Disabling (greying-out) options on Lotus form
I have created a notes (.nsf) database which is having certain checkboxes and text feilds on a form. These fields are editable. Is there any way to disabled(greyed out ) whole form so that no one can change these fileds at certain point. Is there any function to do that whether in lotus-script or formula language. Please help!!!!!!!! --Ashoo

Software/Hardware used:
ASKED: April 30, 2009  8:18 AM
UPDATED: May 3, 2009  4:04 PM

Answer Wiki:
Maybe you sould work with Author field, wich can manage who has the rightd to go in editmode... You could work with @Command( [EditDocument] ; "1") to put the document in modification mode or @Command( [EditDocument] ; "0") to make it display only.
Last Wiki Answer Submitted:  April 30, 2009  1:35 pm  by  BruceWayne   4,075 pts.
All Answer Wiki Contributors:  BruceWayne   4,075 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

BruceWayne’s response is correct (as usual) for controlling the entire form based on an Author field and the proper settings in the ACL. If you want to control one field at a time, you can use the field’s Input Enabled event. There are some restrictions on this, so you will have to read about it in help. With this event, even if someone has edit access to the document, the form will prevent them from edting specific fields.

 3,845 pts.

 

Another way would be to create a Computed Section and place the whole document and/or certain fields within the section, make it editable with an author field and Administrators group. Once the document is created and saved, you could then repopulate that field with just a specific group you would allow to modify the document within a computed field.

 55 pts.

 

Yet another way is to set up one form with editable fields and a different form with only computed fields. The Notes client can then be set up to select the appropriate form for the user.

 1,620 pts.

 

You can use an entry field and a display field. Like this: ClientName and DisplayClientName.

DispalyClientName inherits from ClientName. So the user cannot edit here. The user must edit ClientName.

Then at the point in your workflow that you want to disallow editing, you hide ClientName so that the user can only see DisplayClientName, which he cannot edit.

You use a hidden field to turn off displaying ClientName and turn on displaying DisplayClientName.

The answers above will control the entire form or a section of a form. My method will allow you to control field by field.

 115 pts.

 

Mrainer: Your response, although it would work, is the ‘old way’ to do it. The Input Enabled event of a field controls the field, not the whole form or a section and is the preferred way to control edit access to a field.

 3,845 pts.

 

Brooklynegg: You are right.

However, using Input Enabled event has a few problems. At least in certain versions. In particular, doesn’t work on the web (at least in 7) and doesn’t work with richtext fields.

Maybe this has been fixed in 8.

 115 pts.

 

Hey All,

Thanks a lot for your answers. I will try to do the same :-)

–Ashoo

 85 pts.