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
2
votes
1answer
21 views

Format view using @group.fieldData on a lookup column

I'm trying to do some formatting of my document library. I'm specifically trying to format when I've grouped by a column, this column is a lookup column to another list. This is the code I'm using. { ...
0
votes
1answer
29 views

Show Description on Title Hover in Gallery view

I have a custom list with Title and Description. I wish to display the list view as a gallery with only the Title in it. On hover over the title, it should display the description field covering the ...
1
vote
1answer
32 views

SharePoint Online list - format group headers to remove column name

I have a SharePoint Online list that contains employee documents for each of our staff members. I keep it grouped by employee name which is great, but the word 'Employee:' before each name is really ...
0
votes
2answers
75 views

Columns are missing in the gallery's Card Designer

I'm using the gallery view in a Microsoft 365 SharePoint list. I'd like to add a few more fields (i.e., columns defined in the SP List) to the display, but not all the fields (column names) are ...
0
votes
1answer
139 views

Lists 365 JSON - group header based on condition

Similar to the example here: Example: Color coded group header with aggregate I am trying the group header text in the list view to show the number of tasks that are NOT 'Completed' in the 'Status' ...
2
votes
1answer
238 views

How to add an image to a column based on the value of another column (and have it show correctly in Gallery view)?

Desired Behavior: Display an image in the column My Image based on the value in the column Model. My Image is type Picture (I also tried making it type Image but got the same outcome). Model is type ...
1
vote
1answer
148 views

How do I format Tile View JSON so that it doesn't break apart a word in the middle of the word for multi line column

I have created a tile view that has a few columns from a SharePoint list. I have everything formatted perfectly, except it randomly breaks apart lines in the middle of a word. Say teacher it would be. ...
0
votes
1answer
24 views

How to color new list record like outlook do? [closed]

Is there any possibility to color new record on SharePoint list like outlook new emails?
0
votes
1answer
296 views

Format List View: JSON background colours 'ms-bgColor2' property - very few colours available

I'm attempting to change the colour of the bg-Color property. By standard on my list the colour is set to white. I'd like to change it to a different colour, but there are very few available to me. ...
0
votes
2answers
61 views

Any way to have document read time in SP library Tile View JSON Format

Is there any way to estimate the document read time in SP Document library Tile view using JSON formatting. Any help would be appreciated.
1
vote
1answer
453 views

SharePoint format groupby over full width (group props headerformatter json)

I have a SharePoint Online list with a groupby in the status field. Now I want to change the whole background of the groupby so that the status row has a different color. I have already applied JSON ...
1
vote
2answers
310 views

JSON Row Formatting Display Icon based on column value

I am working on some custom JSON using the "rowFormatter" view formatting schema. I want to display an Icon depending on the value in another Column. My conditional statement is not working. ...
2
votes
1answer
1k views

Change the width of a card in Gallery view of a List

I've been been thinking of migrating our existing FAQ from a wiki to a List in SharePoint Online. Changing the view to a Gallery looks promising: But is there a simple way to make the cards wider?
0
votes
1answer
92 views

Doc lib view formatting: accessing filetype icons

I am trying to get the file icons displayed in the standard view in the document libraries: I want them to be displayed on a custom "file card" alongside the filename and a preview. The SE ...
0
votes
1answer
30 views

IF-condition on a Yes/No column value

I have a SharePoint list where I'm creating a custom galley view. The list contains a yes/no column (named isOwner) which defines if a listed team member is owner or not. In the JSON for the galley ...
1
vote
1answer
113 views

JSON formatted list view does not display a calculated column value

I am using JSON view formatting to display list items in tiles. I use a calculated column to display a date in the "23 March 2021" format and output it as a single line of text. However, ...
0
votes
1answer
91 views

SharePoint online custom list formatting - only Transform or writing-mode css ignored

Trying to style the list in the matrix mode where the column headers needs to be hidden and want to display custom headers. On the headers I am applying the style with writing-mode: vertical-rl and ...
2
votes
1answer
194 views

Using Json to format a row in a sharepoint list

So I am new to using JSON and need a little help. So I have these two Json codes "additionalRowClass": "=if([$Modified] < @now && [$Modified] >= @now - 86400000, 'ms-...
0
votes
1answer
52 views

How to change the color of odd and even rows of a list

When creating a list you get the option to make the odd rows blank and the even rows grey. It generates a JSON-code (I think). How can I change the color from the even rows from grey to blue. This is ...
1
vote
1answer
131 views

Changing the Color of a Row in a SharePoint List (using JSON) based on a columns value

So I have a SharePoint list with a column called modified. I used the following code to change the rows colors based on when it was last modified which works fine: { "$schema": "https:...
1
vote
1answer
132 views

Using JSON to change the color of a row based on the date it was Modified

I want to insert some JSON into my SharePoint list. Basically I have a Modified column that shows me when a value in a row has last been modified. I would like to have a row turn red if it has been ...
0
votes
1answer
387 views

Dynamic filtering with Gallery list view in SharePoint Online

I have found a way to implement a substitute for a tab control in SharePoint Online. In SharePoint On Premise I used Hillbilly Tabs, but I am not allowed to use SPFx at our tenant so I had to look for ...
0
votes
1answer
163 views

Customize search results returned by Highlighted content webpart

I am showing a "feed" from a number of lists with a particular content type with a highlighted content web part on a modern page. The latest items from the lists are shown. To show the items ...
2
votes
1answer
337 views

JSON SharePoint list view - background-image doest not work

I found in documentation that "background-image" is supported attribute but I am not able to use it. Maybe I am doing something wrong. Could you help please, how to use "background-...
0
votes
1answer
172 views

Formatting list row based on score column Office365

I have created formatted the list as a gallery. using two columns such as created by and score. I was wondering if there are any way to do change the background color based on the score achieved. For ...
0
votes
2answers
30 views

SP view formatting row display

Is there any solution to hide specific row in the list using JSON for view formatting. I want to display only rows that match the terms of the current user and hide others. In Column formatting I can ...
1
vote
2answers
213 views

SharePoint modern view formatting with JSON: URL returns void

I'm trying to format a List in SharePoint modern view. When clicking on the the URL "Bekijk recept" I get a javascript:void(0); instead of opening the URL. Here you can see some of the code:...
0
votes
1answer
664 views

Change column name in view using json view formatting

I have a view in SharePoint online where I need to override column name with a custom value. Is it possible to do this using JSON View Formatting? Ref: https://docs.microsoft.com/en-us/sharepoint/dev/...
0
votes
1answer
265 views

Json not displying FAQ list properly

I just found out I cannot use "Newsletter style" for my FAQ lists in a modern site. If I use that the entire site will switch between classic and modern style. So I am trying some list ...
0
votes
0answers
36 views

JSON code to change Default view into Newsletter view

I have created a very basic FAQ using a custom list. I want to use the ‘newsletter’ style but when doing this the search box disappears and it appears only in default view. As a workaround I found out ...
0
votes
0answers
57 views

Broken images when using json view formatter

https://github.com/pnp/sp-dev-list-formatting/blob/master/view-samples/contact-card-format/contact-card-format.json I am using a code from above link, I have changed all $Picture to make list value, ...
3
votes
3answers
486 views

Is it possible to add JSON code to hide and show other rows based on column value?

I am using view formatting with JSON and wondering if its possible to add button that can sort, hide and show other rows based on their column value, like only show items in toys department store and ...
0
votes
1answer
127 views

anyone else got this problem while using JSON view format? List items not showing after the 30th row?

I tried it several times with chrome whenever am at the 30th the row in the list it stops showing the rest of the rows. When I inspect element browser it loads the rest of the rows or when I move the ...
0
votes
2answers
408 views

JSON view formatting [$Editor] en [$Modified] not visible

I'm formatting the view of an entire list using JSON. Using the following code, the date modified and editor are not visible. {"elmType": "span","txtContent": "[$...
0
votes
1answer
291 views

JSON view formatting edit item panel

I want to format a view using JSON but stil keep the possibility to click on the title and get the information panel to edit the item. Using the following code, I cannot longer click on the title. &...
1
vote
1answer
80 views

Lookup image conditionally in SharePoint list formatting

I have a column named LinkType that will tell if the item is a Bug, Requirement, Feature, etc and based on the value I would like to display different pictures. Previously I was using a similar setup ...
0
votes
1answer
208 views

Hyperlinks in JSON not always working

I'm trying to format a SharePoint Online list using JSON. I have Title, ReportURL and Report Short Description columns. I want click on the title to go to the URL in the ReportURL column. Using the ...
1
vote
1answer
551 views

Access information in hidden columns with JSON formatting

I am trying to format a document library in our SharePoint Online platform. The goal is to have a row with a video thumbnail, title and short description. The title is not the same as the video file ...
1
vote
1answer
188 views

Problem with JSON formatting when using a location column

I want to create a view using JSON formatting. In this view I want to use a location column called "Adres" (I checked the URL and the field name really is called "Adres"). The ...
1
vote
1answer
347 views

Promoted Links list using View Formatting JSON stopped working today

Using a Promoted Links list with View Formatting to display as tiles has stopped working today in one of our client's Microsoft 365 tenants. I've been able to reproduce the issue in my developer ...
1
vote
1answer
444 views

Need Help with "Format View" feature in Modern List based on Condition

I am trying to color code a Row based on a condition in a Modern List (SPO). It goes something like this: In English: If ApprovalStatus = 'Pending' AND 'RequestDate' < [Today]-5 Then Row Color = '...
0
votes
2answers
711 views

Sharepoint online list view formatting DefaultHoverView using forEach

I am using Sharepoint list JSON view-formatting and want a list of names to each show their live persona card on hover. I can get this to work for just one name, but when I use forEach I cannot get ...
1
vote
1answer
1k views

How to make Tile clickable using JSON

I have the following JSON on my SharePoint (added via Format View for Tiles): { "$schema": "https://developer.microsoft.com/json-schemas/sp/view-formatting.schema.json", "hideSelection": true, "...
1
vote
2answers
457 views

Formatting JSON view in SharePoint how to group?

Can I check, I have two columns: category and questions. I want to group all the questions that are related to the category as a group. Can I know how? Category A Questions 1, 2 3 Category B ...
1
vote
0answers
185 views

How to control arrangement of view formatted list items?

I have a sharepoint list that uses view formatting. The height of each item depends on the content within it, they are arranged with 4 in each row when the browser is maximised. The columns display ...
1
vote
2answers
2k views

List/view formatting on grouped view on modern SharePoint page

I am working on migrating a page from classic page to a modern page. Today I am displaying several summary links web parts as tabs (Hillbilly tabs) on a classic page. In each summary link tab I am ...
1
vote
1answer
440 views

Modern list view formatting: build a url to display a user's profile picture

In a list I used column formatting to display a user's profile picture by building a url to the image like this: "elmType": "img", "attributes": { "src": "='/_layouts/15/userphoto.aspx?...
0
votes
1answer
42 views

SharePoint List View Formatting

I want to check the date column in my list along with a flag to format list view: I tried using AND and nested both don't seem to work: { "schema": "https://developer.microsoft.com/json-schemas/sp/...
0
votes
1answer
533 views

Edit link is not working in Json Formatting of view

I have created view using JSON formatting like in below image. The Give feedback button is given editProps as custom row action. This button works in list view, it opens the edit panel for the ...
0
votes
1answer
183 views

List layout with json not works as expected

I tried using below json code to make list like tile. It works as expected when open it in the list however, the layout changed when use this list as web part in page. Figure 1 : Open in list ...