question

24359662 avatar image
0 Votes"
24359662 asked 24359662 answered

Simple list formatting with attachment

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?


office-sharepoint-online
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

24359662 avatar image
0 Votes"
24359662 answered
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

EmilyDu-MSFT avatar image
0 Votes"
EmilyDu-MSFT answered

@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.





1.png (4.9 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

24359662 avatar image
0 Votes"
24359662 answered

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!



1.png (12.2 KiB)
2.png (9.5 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

24359662 avatar image
0 Votes"
24359662 answered

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


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.