Learn how to a build a cloud-first strategyRegister Now


Hide except from author

Posted on 2007-10-11
Medium Priority
Last Modified: 2013-12-18
I know I should know this, but I am having a tough time with it.  Have an author field I want to have visible only to the author of the doc, that way they can add people they want to have edit rights on their own. How can I do a hide  to allow this field visible to only the original author. I am thinking of some sort of @UserName code.
Question by:jforget1
1 Comment
LVL 22

Accepted Solution

Bill-Hanson earned 2000 total points
ID: 20060187
Do you have the author's name captured in a field?  If not, you can use @Authors or $UpdatedBy to get the name of the author.  I like to include a "CreatedBy" field that is computed when composed (using @UserName) so that I don't have to rely on @Authors or $UpdatedBy since it's possible that both of these could return an empty string.

Whatever the source of the author name, you conditionally hide the field by right-clicking on the field and selecting "Field Properties" (or "Text Properties").  Switch to the "Hide When" tab and enter this formula in the "Hide paragraph if formula is true" field (also enable the checkbox).

CreatedBy != @UserName;

If you don't have a field that captures the author's name (CreatedBy in my case), you can add one of these lines to the code above to define CreatedBy...

CreatedBy := @Authors[1];
CreatedBy := $UpdatedBy[1];

Featured Post

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question