InfoPath display or hide some section according to whether current user belong to SharePoint group

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:

 

 

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 2
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值