Skip to content

Commit 2cddacb

Browse files
000-530: hidebuttons
1 parent aa764e8 commit 2cddacb

File tree

10 files changed

+17
-4
lines changed

10 files changed

+17
-4
lines changed

_data/docs_menu.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,9 @@
5454
- name: Count files or items with unique permissions using Powershell
5555
link: /articles/en/SharePointOnline/countfilesunique
5656
- name: Get version history programmatically
57-
link: /articles/en/SharePointOnline/getversionhistory
57+
link: /articles/en/SharePointOnline/getversionhistory
58+
- name: SharePoint list view - hide new button
59+
link: /articles/en/spo/hidebuttons
5860

5961

6062
- label: Viva

_data/navigation.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,8 @@
5656
link: /articles/en/SharePointOnline/countfilesunique
5757
- name: Get version history programmatically
5858
link: /articles/en/SharePointOnline/getversionhistory
59+
- name: SharePoint list view - hide new button
60+
link: /articles/en/spo/hidebuttons
5961

6062
- name: Viva
6163
link: /#

articles/en/SharePointOnline/hidebuttons.md renamed to articles/en/spo/hidebuttons.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
---
22
layout: page
33
title: 'SharePoint list view: hide new button'
4-
menubar: docs_menu
54
image: 'https://unsplash.com/s/photos/random'
65
hero_image: '/img/IMG_20220521_140146.jpg'
76
show_sidebar: false
@@ -96,10 +95,12 @@ You can hide one or more buttons in the command bar of your SharePoint list by u
9695

9796
```
9897

98+
<br/>
99+
99100

100101
# Intro
101102

102-
The command bar in SharePoint Online list view has several buttons:
103+
The command bar in the SharePoint Online list view has several buttons:
103104

104105
* Add new item
105106
* Edit in grid view
@@ -123,10 +124,11 @@ And some extra buttons that appear in the command bar when you select an item:
123124
* Version history
124125

125126

126-
<img src="/articles/images/hidebuttons7.png" >
127+
<img src="/articles/img/hidebuttons7.png" >
127128

128129
<img src="/articles/images/hidebuttons.png" >
129130

131+
<br/>
130132

131133
# Hide a button in the command bar
132134

@@ -146,6 +148,10 @@ and enter the JSON code with your selected keys.
146148

147149
Mind you, the buttons are only hidden. The functionalities still exist. Hiding the keys from the SharePoint list does not affect users' permissions. If they find a creative way (e.g. via Graph API) to add a new item, or create a flow starting from Power Platform entry point - they can still do it.
148150

151+
<img src="/articles/images/hidebuttons.png" >
152+
153+
<br/><br/>
154+
149155
### A list of command bar buttons with the corresponding key
150156

151157
The keys have very intuitive names. Most of them are called exactly by their display name (the name you see in the user interface). There are only a few exceptions. Here you can find the list of command bar buttons with the corresponding key:
@@ -167,6 +173,9 @@ The keys have very intuitive names. Most of them are called exactly by their dis
167173
| Delete | delete |
168174
| Version history | versionHistory |
169175

176+
177+
<br/>
178+
170179
# Examples
171180

172181
### Example 1

articles/img/hidebuttons.png

20.6 KB
Loading

articles/img/hidebuttons2.png

27.1 KB
Loading

articles/img/hidebuttons3.png

38.8 KB
Loading

articles/img/hidebuttons4.png

64.1 KB
Loading

articles/img/hidebuttons5.png

81.2 KB
Loading

articles/img/hidebuttons6.png

50.8 KB
Loading

articles/img/hidebuttons7.png

34.3 KB
Loading

0 commit comments

Comments
 (0)