Column Formatting
4 TopicsSharePoint 2019, column formatting not working
Environment: SharePoint 2019. I am trying with column formatting. It is working fine with Online. Same code is not working in SP2019. May be office fabric is not loading as expected in SP2019. Is there any option to make it enable ? When i see in console, it is giving following errors:Solved11KViews0likes7CommentsColumn formatting given value
I have created a meta-data column in SharePoint called "Issuer" and I also have a std column "Created by". Most of the time the Issuer is the same person who also created the document. Is there a way so that I automatically can get the name of the person who created the document in the Issuer column? Like a given value that you can change if you want. Regards, Teresa1KViews0likes1CommentSharePoint List Web Part - Column Formatting Links
This post is meant to address why the column formatting for "target": "_blank" doesn't work in the SharePoint list web part. I have a SharePoint lists which has the Title column formatted to open a link. The JSON is set to open the link in a new tab. This functionality works when viewing the list itself, but when I put it on a page using a List Web Part, the link opens in the same tab. The real problem is when the link doesn't open in a new tab, after SharePoint navigates, the quick launch isn't updating to the subsite's navigation. I've seen posts on this specific issue before as well. The partial page loading/caching must be causing this. The two issues are somewhat unrelated. { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json", "elmType": "a", "txtContent": "@currentField", "attributes": { "target": "_blank", "href": "='[MySiteUrl]/sites/ops/[mySubSiteName]' + [$ID] + '/SitePages/Home.aspx'" } }4.2KViews0likes1CommentColumn formatting with Currency
Hi There Everyone! I have started using the column formatting for some simple things but ran into my first speed bump. I have a calculated currency column, and my JSON formatting works just as I want, the only problem is the JSON formatting strips the currency format away. Can someone point me in the right direction on how to format this column? { "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json", "elmType": "div", "attributes": { "class": "=if(@currentField > 0, 'sp-field-severity--blocked', '')" }, "children": [ { "elmType": "span", "style": { "display": "inline-block", "padding": "0 4px" }, "attributes": { "iconName": "=if(@currentField > 0, 'Error', '')" } }, { "elmType": "span", "txtContent": "@currentField" } ] }2.6KViews0likes0Comments