限制newform.aspx中的字段视图 [英] Restrict field view in newform.aspx

查看:65
本文介绍了限制newform.aspx中的字段视图的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,



列表中有10列。当我添加新项目时,打开newform.aspx。要求是最后3个字段应仅由营销组填写。如何根据人或群组禁用/隐藏最后三个字段...

$


谢谢 提前!

解决方案

       


您好,


请尝试以下脚本..




< script>


(document).ready(function(){  ;   

isMarketingGrpMember('MarketingHroupName');

});   


function isMarketingGrpMember(groupName){

   


.ajax({

        url:_spPageContextInfo.webAbsoluteUrl +" / _ api / web / sitegroups / getByName('" + groupName +"')/ Users?

Hi All,

I have 10 columns in a list.When I add a new item it open newform.aspx. The requirement is that the last 3 fields should be filled by only marketing group. How i can disable/hide the last three fields on the basis of people or group...

Thanks  in advance!

解决方案

       

Hi ,

Try the below script ..

<script>


(document).ready(function() {    
isMarketingGrpMember('MarketingHroupName');
});   

function isMarketingGrpMember(groupName){
   


.ajax({
        url: _spPageContextInfo.webAbsoluteUrl + "/_api/web/sitegroups/getByName('"+groupName+"')/Users?


这篇关于限制newform.aspx中的字段视图的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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