Really Need Advice: User and Managers

rss

Posted by MES5464 - Oct 14 ’13 at 11:24

I am not using the People/Groups feature of SharePoint because I haven't figured out how I can create custom columns in the user list.

So, I have created a custom list for my needs. But, now I have a problem to solve. I need to create forms for the supervisor to approve or decline vacation. I need to be able to direct the supervisor to an editable form for vacation requests but I want all others to be directed to a read-only form.

The functions available in the "User-defined rule" provide functions for getting the current user but I need to be able to compare the current user to my text field.

Is there a way to pass in a variable?

What does the ContainsCurrentUser function use, the domain/username ?

Any help or ideas will be great.

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 2 months 18 days
    #1 by Dmitry Kozlov Oct 15 ’13 at 03:19

    ContainsCurrentUser() function determines if the current user is selected in provided People or Group field or belongs to  one of selected SharePoint or AD groups. If you use your own list of users you can compare the selected value with tokens [CurrentUserName] if you store display names in your list or [CurrentUserLogin] if you store logins. Examples:

    Contains([Your field], [CurrentUserLogin])
    [Your field] == [CurrentUserLogin]
    
  • MES5464
    Member
    Member for: 6 years 3 months 12 days
    #2 by MES5464 Oct 16 ’13 at 04:05

    The CurrentUserName is working good for me but when I try to compare it with a Cross-site Lookup field value, I get the ID#;FullName, so I can't use CurrentUserName to compare against the cross-site lookup field.

  • Dmitry Kozlov
    Dmitry Kozlov
    Admin
    Member for: 6 years 2 months 18 days
    #3 by Dmitry Kozlov Oct 18 ’13 at 02:03

    [#2]: Hello,

    Try to use Contains function, which checks if the first string contains the second one:

    Contains([Your field], [CurrentUserName])
    
Displaying 1 to 3 of 3 messages