Skip to main content
Share Your Experience: Take the 2024 Developer Survey

Questions tagged [view-formatting]

View formatting is sued to customise how views in SharePoint lists and libraries are displayed.

Filter by
Sorted by
Tagged with
0 votes
1 answer
61 views

Hide "Favorite/Unfavorite" button in ribbon via list view format CommandBarProps

Need to hide majority of button in library ribbon - using "Format View" option and JSON editor work for every button.. except "Favorite" and "Unfavorite". Syntax ...
Kristaps Vilerts's user avatar
0 votes
2 answers
36 views

How to change the background color of a list to red with JSON?

How to change the background color of a list to red with JSON? This is what I have: { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json", ...
user1903995's user avatar
0 votes
0 answers
10 views

Use JSON row-formatting for my list to give additional rows a different color. But the color is not correct

I use this JSON code below to give additional rows a different color. { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/row-formatting.schema.json", "...
user1903995's user avatar
0 votes
0 answers
17 views

Conditional formatting on Calendar view is not showing all choices in a column as values

I have a list that includes a "Category" column, which consists of several color choices. When I try to apply conditional formatting to this list in Calendar view, it only shows me the "...
Nick Ali's user avatar
0 votes
1 answer
53 views

JSON formatting - remove hyperlink in one view only

I have two views in a SharePoint Online document library. I want to strike-out and disable the hyperlink of column 'Name' if 'Retracted' column is true. I've carried this out using 'Format columns' ...
Orange Juice Jones's user avatar
0 votes
0 answers
14 views

Build custom group headers and footers not working

The json formatting code provided by Microsoft at this page: List layout customizations under "Build custom group headers and footers" doesn't seem to work. If I remove the nested if(s) I ...
Jordan's user avatar
  • 1
1 vote
1 answer
77 views

Icon Progress Bar JSON formatting not displaying in my view

I've tried inserting this nice JSON Icon Progress Bar in my list view (thanks to this so useful page) but it does not display. As I am in a view formatting, I have changed the fields @currentField by $...
Hervé 's user avatar
0 votes
1 answer
13 views

I want a column, as part of a view that shows the date a file was modified, not including the renaming of the file

We currently have a 2 step uploading process. First we rename the current file on SharePoint, then we upload the new file (this allows us to track usage over the multiple versions). I am wanting a ...
Matt Casebury's user avatar
0 votes
1 answer
36 views

Adding a semi-transparent cover on an image in a SharePoint View?

I have a custom JSON view in SPO. It displays an image (the same one each time - don't ask! this is what someone wants!) I would like the images in the view to show a 50% transparent shadow on hover (...
Pete Whelan's user avatar
1 vote
1 answer
159 views

SharePoint Online - FAQ List Colors

I am building a fairly simple FAQ for my team's website. I've got the list setup and the JSON formatting in place but I am trying to get the main column headers to display in a different color than ...
Dominick's user avatar
0 votes
2 answers
342 views

Resources for Learning to format SharePoint Online Lists with JSON

What resources would you recommend for someone needing to quickly learn to format SharePoint Online list items and views using JSON? The individual is not a developer but has basic knowledge of some ...
Chris's user avatar
  • 3
0 votes
1 answer
2k views

Making a custom SharePoint List JSON View Format that can automatically display new columns

I have created a JSON view format in a SharePoint List for a client. They anticipate that in the future they will be adding additional columns to the list, but they do not have the in-house expertise ...
Kenneth Ward's user avatar
0 votes
0 answers
414 views

Set width of Cards to Full Screen using JSON view formatting without changing height

How can I set the width of the Cards (or Tiles) in SPO Modern views to full screen without having to increase the height? I'd like to set the width to 1500px but the width is somehow tied to the ...
Eric Whitley's user avatar
0 votes
1 answer
212 views

Possible to use custom formatter in tile view?

I have a library that uses Document Sets and there are columns on the document set content type. I want to display them in a view that uses the Tile format like this: I use the JSON column formatting ...
mannaggia's user avatar
  • 999
0 votes
1 answer
257 views

How to center the content of all the SharePoint Gallery cards?

How can I center the content of all the SharePoint Gallery cards?
user1903995's user avatar
0 votes
1 answer
181 views

Get a List View via REST API with custom formatting and display it

I have a List with a View on it that has custom formatting. I am trying to pull the list via REST API and display the items according to that view within a SPFX-webpart with the custom formatting ...
karma n effect's user avatar
1 vote
1 answer
354 views

Help with JSON code for SharePoint online document library

I have a document library that I want users to be able to add a photo to with a title and descriptions and others be able to hover over the pic in gallery view and see the description AND be able to &...
Beth C's user avatar
  • 25
2 votes
1 answer
251 views

Display video description with JSON formatted gallery view

I store videos inside a SharePoint document library: Now I want to display the videos in a custom tile view using JSON formatting, but the "Description" column available in the list view is ...
Tom667's user avatar
  • 23
1 vote
1 answer
738 views

Is it possible to create buttons for hyperlink fields in a SharePoint modern customized list view?

I have created a list that contains document names, 4 choice fields to select and define what the document is, and 2 hyperlink fields to take the user to the document in either English or French. So ...
Tammy Lang's user avatar
1 vote
1 answer
119 views

How to append a column value to a group header

I have a list grouped by Name and I'd like to append their job title to the header. The Job Title column exists in the list and it is a lookup field. So it would look like this: John Smith - General ...
DLM's user avatar
  • 25
1 vote
2 answers
183 views

Is it possible in SharePoint Online to set list row colors only on the grouped header rows?

Is it possible in SharePoint Online to set list row colors only on the grouped header rows? I'm hoping I can format the grouped list like this?
DLM's user avatar
  • 25
2 votes
2 answers
1k views

Conditional formatting of board card background color

I am using a Board view to manage team tasks. One of the fields is the AssignedTo field which is a choice field with peoples' first names. I want to color the background color of the cards based on ...
Winton Cape's user avatar
0 votes
1 answer
100 views

JSON Formatting - mailto - cc address isn't working

I'm trying to include a cc address for my item list email link. I used this: "href": { "operator": "+", "operands": [ "mailto:", ...
MV90's user avatar
  • 25
1 vote
1 answer
90 views

Repeat a span element 20 times in SharePoint view

I'm heavily customizing view of a SharePoint list using JSON formatting, a gantt-like timeline, a roadmap. I would like to split the timeline with 20 vertical lines over it. Currently I have done it ...
Lunar Remedy's user avatar
1 vote
1 answer
46 views

Format View with AdditionalRows in Modern List

I set up column color coding based on the Due Date, but I want to extend that to the entire row. If the due date is within 30 days, the color is red. If the due date is within 60 days, the color is ...
user2644117's user avatar
1 vote
1 answer
340 views

Used JSON to format list view: why is my tile view in web part rendering wider than in the list?

I am using JSON to format list view in SharePoint online list. Why is my tile view in web part on site pages rendering wider than in the default list page? A related question: How can I change the ...
vrm's user avatar
  • 17
0 votes
1 answer
25 views

How to use JavaScript to conditionally format a grouped view of a SP13 list

I have found examples that allow for highlighting a row based on date, I need to also highlight the 2 group tabs above that row example Group(highlight red if any row in group meets condition) ...
James's user avatar
  • 1
1 vote
1 answer
77 views

Can i know why the title and modified by not showing also the box shadow was also not working... sorry im new with this

Can I know why the title and modified by not showing? also the box shadow is not working? { "$schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json&...
mindspace3387's user avatar
1 vote
1 answer
662 views

Hide or Deactivate the setting "Format Current View" and "Edit Current View" in a list

I'd like to make sure that only the list owner (or if it is not possible otherwise the SharePoint Owner) is able to see the settings "Format Current View" and "Edit Current View" ...
tomankid's user avatar
0 votes
0 answers
237 views

Sharepoint Online - removing the column headings from the group view CODE NOT WORKING NOW

I've been using the following code successfully and then noticed recently that it's not working. Is this because of an update? Is there any updated code? Thanks very much. Code I used but no longer ...
Hazel's user avatar
  • 1
0 votes
1 answer
709 views

Can a listview be formatted as a dropdown selector via JSON?

I would like to format a list view as a dropdown. Is this possible? Power Apps seems not to be an option due lack of taxonomy fields integration.
fallout's user avatar
  • 1,015
0 votes
0 answers
263 views

Using additional field from lookup column in list view group header

I have a requirement for setting up a list view that groups by a date and a title, and sorts descending chronologically. The date in the list is a lookup column. Using ootb view settings I can get the ...
dontEvenWantToBeAround's user avatar
0 votes
1 answer
89 views

JSON to resize picture based on another column value

I am using SharePoint Online and have a list I have two columns: Department (single line of text) Logo (URL formatted showing as a picture) I have formatted the Logo column as follows: {&...
DARREN SPARK's user avatar
1 vote
1 answer
74 views

Highlight rows where Month column is equal to today's month

I have a choice column (it can be a text column if that would work) called Month, with options for Jan to Dec. I am trying to use column formatting to highlight rows where the chosen month is the same ...
B4N3's user avatar
  • 27
1 vote
1 answer
86 views

Don't generate Card in SharePoint Online List Gallery View (JSON)

I have got a SharePoint list that i would like to display in a SharePoint Site. Different Users should only see the elements that are meant for them. This is determined by the columns Zielgruppen (...
Kirito's user avatar
  • 11
0 votes
1 answer
98 views

How to dynamically hide/show a DIV area in a custom row formatter

I have a custom row formatter to display Q&A information in a list. I'd like for the display to show on Row 1 the Q, and Row 2 the A. But - I want the initial view to not display any of the "...
VASoftball5's user avatar
0 votes
1 answer
1k views

JSON to format SharePoint List items under a Header

I have formatted a list to look like the one below. I would like to wrap them in a DIV so i can have a header above them named "Useful Tools" or something. I can't seem to get a header above ...
Madeline's user avatar
1 vote
2 answers
569 views

JSON code for centering SharePoint list within List web part

I have formatted a Tile/Gallery view of a SharePoint list and would like to know if anyone knows how to actually center these tiles/list on the page within the web part? This is my code: { "$...
Beth Culpepper's user avatar
1 vote
1 answer
584 views

Can JSON make a field appear conditionally in a view if it contains a value?

Please can you help me with a problem I have, using JSON to customize a view? I'm creating a glossary, using Lists. The List contains all the metadata for a term – then I'm using the list web part to ...
danhowarth's user avatar
0 votes
1 answer
549 views

Formatting the image picker panel with JSON view formatting

I'm using the organizational assets option to provide users a central repo of approved images to use on their sites. For pages we offer a banner image and optimized thumbnail and on smaller screens, ...
matt's user avatar
  • 589
0 votes
4 answers
718 views

List formatting, column not loaded

Question: How can I enforce to load a column with data without it being seen as a separate column? Problem: I have two columns, title and summary. Now I would like to display only title in list view ...
WG-'s user avatar
  • 177
3 votes
1 answer
4k views

(SP List) How to wrap a text in the format view?

What I'm trying to do is achieve making my own header and hiding the original header so that the users can't change the setting. To accomplish this, I found that I can change the "Format View&...
TM1's user avatar
  • 43
1 vote
2 answers
655 views

Why can't I change the width in a Sharepoint list gallery view with Json?

I'm fairly new to using JSON and I'm trying to create a Gallery view to use with dynamic filtering. I have the view working the way I want, but I can't get the width and height of the 'card' to be ...
KarenI's user avatar
  • 11
0 votes
2 answers
1k views

Using JSON to hide or show row depending on a row value

Can anyone explain this? I wrote this JSON back in June. It's to show birthdays for the current month. I have a simple list with a date field. To hide rows that are not in current month, I am ...
VASoftball5's user avatar
0 votes
2 answers
702 views

SharePoint Online list row formatting with the LookUp column string start with condition using JSON

I have a project list with the color status as Blue-PRJ1, Blue-PRJ2, Blue-PRJ3, Green-PRJ1, Green-PRJ2, Green-PRJ3, etc. The color status column is the LookUp type column. When the user selects the ...
SP 2022's user avatar
  • 4,074
0 votes
1 answer
173 views

Formatting library row based on dates, but ignoring blanks

I'm trying to use the in-built tools to format a row in SharePoint online. It is simple, I want it to highlight the row red when the due date is in the past AND another column value has been set. I ...
Darkstar.Industries's user avatar
0 votes
1 answer
163 views

List: remove line delimiter

Is it possible to remove the light greyish delimiters in a SharePoint List? I already set margin to 0 but nothing happened.
Der_Fab's user avatar
  • 187
0 votes
1 answer
553 views

SharePoint list in Gallery view does not respect item limit setting

I have one quick question for which I am not able to find a solution now. It seems to me, when any SharePoint online list or Microsoft List in Gallery view is used, cards does not respect configured ...
Molik's user avatar
  • 1,616
1 vote
1 answer
1k views

SharePoint Online list - format group headers to remove column name when multiple columns are grouped

I have been searching the web to try and find an answer to this question however, all pages seem to relate to just 1 column grouping. I have a list of people who are grouped together as gangs and then ...
Robert Redmayne's user avatar
0 votes
1 answer
1k views

How to get photo of user json formatting view

I'm trying to get a photo to show on my view. Tried the below but it won't work: "attributes": { "src": "='https://aaa.sharepoint.com/sites/XXX/_layouts/15/...
naijacoder's user avatar
  • 4,282