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
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.
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.
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.
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.
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.
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.
Hey All,
Thanks a lot for your answers. I will try to do the same
–Ashoo