Formatting
14 TopicsFormatted view - hideColumnHeader not working in list webpart
I have a list webpart on a modern site which has a view formatted with some JSON The list column header displays even though the property hideColumnHeader is set to true (this just started happening - was fine before) It is OK on the list page -AllItems.aspx but on webpart page list column header displays I am using https://docs.microsoft.com/en-us/sharepoint/dev/declarative-customization/view-formatting#get-started-with-view-formatting to test anybody have any ideas?8.5KViews10likes26CommentsMultiple-selection-enabled People field properties access for View Formatting.
Hello dears, I've a list with a people field ("Owners") allowing multiple selection. There will always be at least 2 people in that field. Is it somehow possible to access the properties of the people field in the context of View Formatting (RowFormatter) ? I'm pretty sure its not possible to loop through the values of such array but maybe its possible to arbitrarily choose like for the 2 first elements? Something like [$Owners].[0].email ? Thanks for your help!1.3KViews0likes2CommentsClickable Button on Gallery View Document Library
Hello, I have a document library where social media assets are stored. I would like to create a gallery view of the document library that displays a "Download" button, so when the user selects, the file is automatically downloaded to their device. I have figured out how to add the Download button, which works perfectly in the List view. When you switch to gallery view, the button does not display, but I was able to get the button to show up by adding "columnFormatterReference": "[$Download]" to the Format view JSON. However, when the user clicks on the Download button from the gallery view, the file opens. I removed the following JSON code, so the file does not open in a new tab: "customRowAction": { "action": "defaultClick" Now I just need to figure out how to make the "Download" button clickable. Any help would be greatly appreciated. I'm brand-new to JSON and coding in general.Solved4.8KViews0likes9CommentsFormatting column to hide button based on created by or author
Hi I'm trying to format a column so that a Submit button that triggers a flow is to be only visible for the person who created the item. Columns real names are Submit and Author Submit is Single line of text column. Author is a Person or Group column. I know I have to added a visibility line to the formatting but I'm not sure what to put. I tried "visibility": "=if(((indexOf([$Author],'[Me]')) == 0),'hidden', 'visible')" but it didn't work. Any help is appreciated!1.3KViews0likes2CommentsQuick help with Json formatting of List based on Githhub resource.
Hi everyone, Can someone help me with the following: I created a list and a board view according to the guidance and resources here in Github: https://github.com/pnp/List-Formatting/tree/master/view-samples/board-tags However, I have no idea where to put the Json code in the list advanced formatting... These are the json resources: https://github.com/pnp/List-Formatting/blob/master/view-samples/board-tags/board-tags-boxes.json https://github.com/pnp/List-Formatting/blob/master/view-samples/board-tags/board-tags-cards.json https://github.com/pnp/List-Formatting/blob/master/view-samples/board-tags/board-tags.json Can anyone help me/point me to where I need to copy paste this code in the list I created? Many thanks!2.1KViews0likes1CommentText Hover Over only works if Column is Showing (not hidden)
Hi! I've created a risk tracker for my team and have it set up so that risk is reflected using icons / colour coding. What I've also done is captured the description of risk which I then show using the following code on hover over: "customCardProps": { "openOnEvent": "hover", "directionalHint": "rightCenter", "isBreakVisible": false, "formatter": { "elmType": "div", "style": { "font-size": "12px", "display": "block", "margin-left": "auto", "margin-right": "auto", "width": "180px", "padding": "4px" }, "txtContent": "[$ResourceRiskDescription]" } }, But what I've found, is that the hover over only populates with the text if I've got that column "Resource Risk Description" showing in my view. The whole point of the hover over is so that I can hide the column in the view and show only my icons. Anything wrong with my code?3.2KViews0likes1CommentMS Lists approval status column formatting when browser language changes
Dear all, I've created rules to format the approval status column, but when I've changed the browser language the formatting rules have don't worked correctly. I've noted that the Json created uses the value of the element, but it changes when the language change. How can I solve the problem? Thanks for your helpList Form - Conditional formatting when not in the view
Hi, I have a List in SharePoint with a large number of choice fields that all have formatted styles. There are also two different views, one showing limited fields and one showing them all. When opening the form to create or view an item in the list the formatting for the “pills” is shown, but only if that field is available in the list view itself. If the column is hidden from the underlying view then no styling is displayed. Is there a way to always show the styling, irrespective of the view? ThanksSolved1.4KViews0likes1CommentSharePoint list Alternating column formatting
Hello everyone, I was wondering if it is possible to alternate the background color of colums using JSON formatting on a Sharepoint List view? I'm aware of the conditional formatting and setting the formatting for each column manually. But is it possible to set alternating column colors like how you are able to set row formatting? Thank you.Solved3.6KViews0likes2Comments