Back to view formats
View formattingSharePoint Online

Disable Selection

This is a very basic sample that disables list item selection within your view.

Disable Selection formatting preview
Sample preview · View original image

Copy. Apply. Make it yours.

Get this format

1 definition

Review the requirements below, then paste this JSON into the matching formatting panel. Show me where.

Use your list's internal column names and replace any tenant-specific URLs or flow IDs. Formatting is presentation, not a way to secure data.

View formatting
Download JSON
{
  "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json",
  "hideSelection": true
}

From the contributor

How to use this sample

Summary

This is a very basic sample that disables list item selection within your view.

screenshot of the sample

The formatted choice column shown above is not part of this sample, it's just part of the list where this sample was applied

View requirements

None

Sample

Solution Author(s)
disable-selection.json Chris Kent

Version history

Version Date Comments
1.0 June 4, 2021 Initial release

Disclaimer

THIS CODE IS PROVIDED AS IS WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING ANY IMPLIED WARRANTIES OF FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABILITY, OR NON-INFRINGEMENT.