Really Need Advice: User and Managers
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.
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
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
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:
]
Code: Select all
Contains([Your field], [CurrentUserLogin])
[Your field] == [CurrentUserLogin
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hello,
Try to use Contains function, which checks if the first string contains the second one:
Try to use Contains function, which checks if the first string contains the second one:
Code: Select all
Contains([Your field], [CurrentUserName])
-
- Information
-
Who is online
Users browsing this forum: No registered users and 17 guests