Hide except from author

Posted on 2007-10-11
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

    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

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    For Desktop Techs: How to retain a user's Notes configuration data when swapping out the end user's computer. (Assuming that you are not upgrading to a completely different version of Notes client) All you need to do is: 1) install Notes o…
    Lack of Storage capacity is a common problem that exists in every field of life. Here we are taking the case of Lotus Notes Emails, as we all know that we are totally depend on e-communication i.e. Emails. This article is fully dedicated to resolvin…
    In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    731 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

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now