InfoPath display or hide some section according to whether current user belong to SharePoint group
2012-11-06 20:59
357 查看
We have a lot of requirements to check if user is in some SharePoint group then display or hide some section in the InfoPath form.
This article will show you the steps to do it.
For how to get the SharePoint group in the InfoPath form please check http://blog.csdn.net/farawayplace613/article/details/8149167 .
This article is base on the result of the above article.
1. Create a SharePoint group in your SharePoint site, name the group as Admin, add your account into that group
2. Open the InfoPath form of the list,(see how to do it in my previous blog)
3. Add a section into the InfoPath form
4.Add some text into the added section, and add one text box into, rename the text box as IsAdmin
5. Click the data tab, and click the "Form Load"
6. Add rule and name it as "SetIsAdmin"
7. Click the add action and select the "Set a filed's value"
8. Select the added section, add a rule(select format for rule type), name it as IsAdmin.
9. Click the qiuck publish button of the InofPath form.
10. Try to create new item of the list, the admin section should be showed:
11. Remove your account from the admin group, try to add a new item again, now you can't see the admin section:
This article will show you the steps to do it.
For how to get the SharePoint group in the InfoPath form please check http://blog.csdn.net/farawayplace613/article/details/8149167 .
This article is base on the result of the above article.
1. Create a SharePoint group in your SharePoint site, name the group as Admin, add your account into that group
2. Open the InfoPath form of the list,(see how to do it in my previous blog)
3. Add a section into the InfoPath form
4.Add some text into the added section, and add one text box into, rename the text box as IsAdmin
5. Click the data tab, and click the "Form Load"
6. Add rule and name it as "SetIsAdmin"
7. Click the add action and select the "Set a filed's value"
8. Select the added section, add a rule(select format for rule type), name it as IsAdmin.
9. Click the qiuck publish button of the InofPath form.
10. Try to create new item of the list, the admin section should be showed:
11. Remove your account from the admin group, try to add a new item again, now you can't see the admin section:
相关文章推荐
- Switch view in the InfoPath form according to the whether current user is in SharePoint group admin
- Get tasks assigned to user or to current user groups in SharePoint using CAML query
- SharePoint debug - "User or Domain Group Not Found"
- Group (SharePoint group, domain group ) contain current user
- Checking if a user is a member in a SharePoint group within web InfoPath 2010 forms
- How To: Check if a user is part of a SharePoint group in InfoPath
- How to get the current user logged into Sharepoint
- Insert multi user or more than one user in SharePoint list Person or Group field
- Get the SharePoint groups in Infopath 2010 and SharePoint 2010 by current user without any code
- if current user do not belong to Admin Group then get Admin priviledge
- Sharepoint Error : The URL "filename" is invalid. It may refer to a nonexistent file or folder, or refer to a valid file or folder that is not in the current Web
- SarePoint Powershell Add user to Group
- SharePoint Error - The current user is not an SharePoint Server farm administrator
- Community Kit for SharePoint Release User Group Edtion(更新中文版)
- Error message when you try to modify or to delete an alternate access mapping in Windows SharePoint Services 3.0: "An update conflict has occurred, and you must re-try this action"
- [msdn]Submitting Data from InfoPath 2007 to a SharePoint List
- Sharepoint2010 系列:在Infopath 2010中调用Web Service(SharePoint Server 2010 -“User Profile Service We)
- Add a User to a Group (or Second Group) on Linux
- Submitting data to a SharePoint 2010 List using InfoPath - CAML
- sharepoint current user filter