User Profile
MilanNikolic
Copper Contributor
Joined 4 years ago
User Widgets
Recent Discussions
List view does not load json formating
Greetings, I've created a list containing peoples holiday schedule. I wanted to show this in a calendar so I created a View for the list. Then base on a column of type Choise I want to colour the events in the calendar. Here if is the list: Here is the desired calendar view: I formatted this with JSON as fallows: { "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/calendar-formatting.schema.json", "additionalEventClass": { "operator": ":", "operands": [{ "operator": "==", "operands": [ "[$Status]", "Waiting Approval" ] }, "=if(@isSelected == true, 'sp-css-color-WhiteFont sp-css-backgroundColor-BgDarkRed' , 'sp-css-backgroundColor-BgCoral sp-css-color-CoralFont')+' sp-field-fontSizeSmall'", "=if(@isSelected == true, 'sp-css-color-WhiteFont sp-css-backgroundColor-BgGreen' , 'sp-css-backgroundColor-BgMint sp-css-color-LightMintFont')+' sp-field-fontSizeSmall'" ] } } My problem is that when I first open the list in this view (as default) the formatting is not displayed. And after I switch between views the formatting starts working. How can I fix this, is there something wrong with my JSON code? Thanks in advance.5.1KViews1like5Comments
Recent Blog Articles
No content to show