Questions tagged [view-formatting]
View formatting is sued to customise how views in SharePoint lists and libraries are displayed.
38
questions with no upvoted or accepted answers
2
votes
1
answer
3k
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
1
answer
46
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 ...
1
vote
1
answer
379
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 ...
1
vote
1
answer
63
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&...
1
vote
1
answer
69
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 (...
1
vote
2
answers
459
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:
{
"$...
1
vote
2
answers
523
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 ...
1
vote
1
answer
1k
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. ...
1
vote
2
answers
5k
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. ...
1
vote
1
answer
718
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, ...
1
vote
2
answers
2k
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:...
1
vote
0
answers
3k
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/...
1
vote
1
answer
637
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
2
answers
698
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
0
answers
542
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
1
answer
821
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?...
1
vote
3
answers
899
views
Sharepoint list, conditioanlly displaying icon
hope you are doing well. I am currently trying to custom format a list using JSON. I am having trouble conditionally displaying the "Attach" or paperclip icon depending on whether the field attachment ...
0
votes
1
answer
17
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 (...
0
votes
0
answers
98
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 ...
0
votes
1
answer
97
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 ...
0
votes
0
answers
46
views
Format SP list gallery view
I'm trying to format a gallery card in SharePoint to the columns side by side, I tried several approaches but didn't manage to get it working.
What I have is this:
What I want it to look like:
The ...
0
votes
1
answer
21
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)
...
0
votes
0
answers
181
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 ...
0
votes
0
answers
214
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 ...
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 ...
0
votes
1
answer
520
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, ...
0
votes
1
answer
132
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.
0
votes
1
answer
475
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 ...
0
votes
1
answer
913
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/...
0
votes
1
answer
1k
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 ...
0
votes
2
answers
3k
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
1
answer
1k
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' ...
0
votes
2
answers
132
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 ...
0
votes
1
answer
408
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
2
answers
1k
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 ...
0
votes
1
answer
88
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
1
answer
942
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
1
answer
332
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
...