一个列表,多种形式,根据用户显示 [英] One List, Multiple Forms, Displaying based on user

查看:169
本文介绍了一个列表,多种形式,根据用户显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨.

我创建了一个大的SP列表.基于该列表,我创建了4种不同的表单,供不同的用户批准.如何根据谁登录到SP来显示正确的表单?我正在使用SP 2013和SP Designer 2013.

I've created a large SP list. Based on that list, I've created 4 different forms for different users to approve. How do I get the right form to display depending on who is logged into SP? I'm using SP 2013 and SP Designer 2013. 

例如,当财务经理登录时,我希望他们仅查看财务部分,然后将其保存到主列表中.等等,对于系统也是如此.

For instance, when the finance manager logs in, I want them to see the finance section only and then it saves to the master list. Same for Systems, Etc.

提前谢谢!

推荐答案

您应该插入默认形式的javascript代码,它将检查当前用户的组,并基于此代码将用户重定向到特定的自定义页面

you should insert  javascript code in the default form, which will check current user's group, and based on that it will redirect the user to the speicified custom page

请检查这些示例如何使用javascript检查用户组

Plase check these example how to use javascript to check user's group

https://msdn.microsoft .com/en-us/library/office/hh185012(v = office.14).aspx

https://sharepoint. stackexchange.com/questions/86912/check-if-user-is-in-a-specified-group

http://spdeveloper.co. in/sharepoint2013/javascript-client-code-get-current-user-groups.aspx


这篇关于一个列表,多种形式,根据用户显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆