As a third option, you can place the fields in the ComputedSubForm or Computed Sections and based on the user role selected, you can hide the content.
Main Topics
Browse All TopicsI have create a checkbox field called Notify and in this field, it contains All, DHSG,DHP,DHT,DKL.
I have also created roles called All, DHSG,DHP,DHT,DKL.
I have another field called editaccess which contains the names who can edit the document.
E.g. 1 if the document "Notify" field is checked DHSG and the person A roles is checked as DHSG, then he can open this document to read only or else he cannot open this document.
E.g. 2, if the document "Notify" field is checked DHSG and the person A roles is checked as DHSG and he is listed in the editaccess field, then he can open this document to edit or else he cannot open this document.
My formula is in the queryopen and querymodechange events.
This question is in progress.
Our experts are working on an answer right now.
Sign up for immediate access to the solution once it becomes available.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
I agree, always use Readers and Authors fields first.
Solving the problem using LotusScript won't work, because a clever user (who says you don't have 'em) can create an agent or a smarticon to update the document without using the form. Protection should therefore be embedded in the document, using the fields Readers and Authors. If you need specific areas to behave differently, you can use a Controlled Access section.
Business Accounts
Answer for Membership
by: madheeswarPosted on 2009-10-26 at 02:41:00ID: 25660704
The best way to do this is to create a Readers and Authors field and assign the selected role to these fields before closing the document. This way only the persons who are assigned with the specific roles will be able to see the doc and edit. This highly secure way.
The second option is to manage with Lotus Script in the Postopen and QueryModeChange event. I prefer the first option.