admin管理员组文章数量:1023282
I am having a list in sharepoint 2013. In one scenario I want the user to just enter a new item into a sharepoint list without editing any previous items.Whereas, in second scenario I just want the user to edit a list without being able to add any new item.
From what I explored this is not posssible using any out of the box feature.
The four .aspx files newform, displayform, editform and allitems form don't seem to contain any option for resolving this.
Does it require using any javascript code? How can it be done?
.png
I am having a list in sharepoint 2013. In one scenario I want the user to just enter a new item into a sharepoint list without editing any previous items.Whereas, in second scenario I just want the user to edit a list without being able to add any new item.
From what I explored this is not posssible using any out of the box feature.
The four .aspx files newform, displayform, editform and allitems form don't seem to contain any option for resolving this.
Does it require using any javascript code? How can it be done?
https://i.sstatic/pVEIm.png
Share Improve this question edited Mar 14, 2014 at 8:33 fzzle 1,4945 gold badges24 silver badges29 bronze badges asked Mar 14, 2014 at 8:24 user3313941user3313941 631 gold badge2 silver badges10 bronze badges 1- You have 40 tabs open in Chrome. Insane. – johnnycardy Commented May 20, 2014 at 15:09
3 Answers
Reset to default 1Just a tweak , create 2 custom permission levels. First one, has rights to add new/View item but no Edit/Delete item permissions. Second, level will have permission to edit item but no permission to add item. Try assigning the user these 2 permission level according to your scenarios, ie Give user first permission level when you want him to only add items and remove first and assign only second permission level when you want user to only edit item.
If yoy want to remove "add new" and "edit" feature, simply set "Toolbar Type" to "No Toolbar"
For your second scenario, an out of the box workaround: To allow users to only edit the list items without the option to add new items you can setup a public view with any grouping (this disables Quick Edit), then add a "mandatory field" (I use row #) that will not be visible in any public view, edit the "edit item" form with InfoPath and remove the "mandatory field". Even if users try to add a new item they will not be able to save, only edit existing items. Simple and doesn't require any coding of any kind nor permissions.
I am having a list in sharepoint 2013. In one scenario I want the user to just enter a new item into a sharepoint list without editing any previous items.Whereas, in second scenario I just want the user to edit a list without being able to add any new item.
From what I explored this is not posssible using any out of the box feature.
The four .aspx files newform, displayform, editform and allitems form don't seem to contain any option for resolving this.
Does it require using any javascript code? How can it be done?
.png
I am having a list in sharepoint 2013. In one scenario I want the user to just enter a new item into a sharepoint list without editing any previous items.Whereas, in second scenario I just want the user to edit a list without being able to add any new item.
From what I explored this is not posssible using any out of the box feature.
The four .aspx files newform, displayform, editform and allitems form don't seem to contain any option for resolving this.
Does it require using any javascript code? How can it be done?
https://i.sstatic/pVEIm.png
Share Improve this question edited Mar 14, 2014 at 8:33 fzzle 1,4945 gold badges24 silver badges29 bronze badges asked Mar 14, 2014 at 8:24 user3313941user3313941 631 gold badge2 silver badges10 bronze badges 1- You have 40 tabs open in Chrome. Insane. – johnnycardy Commented May 20, 2014 at 15:09
3 Answers
Reset to default 1Just a tweak , create 2 custom permission levels. First one, has rights to add new/View item but no Edit/Delete item permissions. Second, level will have permission to edit item but no permission to add item. Try assigning the user these 2 permission level according to your scenarios, ie Give user first permission level when you want him to only add items and remove first and assign only second permission level when you want user to only edit item.
If yoy want to remove "add new" and "edit" feature, simply set "Toolbar Type" to "No Toolbar"
For your second scenario, an out of the box workaround: To allow users to only edit the list items without the option to add new items you can setup a public view with any grouping (this disables Quick Edit), then add a "mandatory field" (I use row #) that will not be visible in any public view, edit the "edit item" form with InfoPath and remove the "mandatory field". Even if users try to add a new item they will not be able to save, only edit existing items. Simple and doesn't require any coding of any kind nor permissions.
本文标签: javascriptRemoving edit or new item button from a SharePoint 2013 listStack Overflow
版权声明:本文标题:javascript - Removing edit or new item button from a SharePoint 2013 list - Stack Overflow 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://it.en369.cn/questions/1745598562a2158319.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论