Simple list formatting with attachment

Lars Bo Wassini 156 Reputation points
2021-05-07T11:42:47.273+00:00

I have a list that contains 2 fields:
* Title
* Date
and an attachment

The list is formatted like this:

--
Title Date Attachment

O someting 12/12/2012 x

O = Selector
x is the paperclip with a link to the file

what I really want is no item selector and no headline for the attachment

--
Title Date
x someting 12/12/2012

--
Why is that so impossible?

Microsoft 365 and Office SharePoint For business Windows
0 comments No comments
{count} votes

3 additional answers

Sort by: Most helpful
  1. Emily Du-MSFT 51,836 Reputation points Microsoft External Staff
    2021-05-10T09:50:02.65+00:00

    @Wassini

    1. It’s by design that you cannot remove the item selector in the list.
    2. For attachment column, by default, it shows as a paperclip without file link as following picture shows. Whether you make any custom modification for the attachment column?
      95253-1.png

    If an Answer is helpful, please click "Accept Answer" and upvote it
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

  2. Lars Bo Wassini 156 Reputation points
    2021-05-10T11:51:14.18+00:00

    But I don't see the reason for the checkbox. It is just useless and takes up space!
    95257-1.png

    I would also like to remove the space between the columns to be able to see the attachment column without scrolling.

    AND I would like to have the title for the attachment "Vedhæftede filer" removed as the paperclip is self- explaining.

    95178-2.png

    I can't see the reason for adding the option to format the list via JSON, if you can't do someting this simple!

    0 comments No comments

  3. Lars Bo Wassini 156 Reputation points
    2021-05-10T12:10:05.667+00:00

    By the way: It IS possible to hide the selector, but ONLY when using the rowFormatter.

    This is NOT working:
    {
    "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json",
    "hideSelection": true,
    }

    This WILL remove the selector.
    {
    "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json",
    "hideSelection": true,
    "rowFormatter": {
    ...
    }
    }

    but using the rowFormatter will:

    1. Disable the option to add file attachments column
    2. Detaches the columns from the column title so resizing will no longer work
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.