SharePoint modern list all-item calendar view not rendering JSON coding on initial loading of page

Vanessa 356 Reputation points
2023-09-16T18:05:24.27+00:00

I have JSON code that colors the title depending on the value of the activity column in a list calendar. I have embedded a web part of the calendar. When I go the page, the color coding doesn't render in the Calendar All Items view upon loading.

If I select another view that view renders the color for the qualifying item. Going back to the Calendar All Items view, the qualified items are colored.

Why isn't the JSON working when the page is initially loaded, or the page is revisited?

The color appears on views of the calendar upon loading but not the Calendar - All Items upon initial loading.

Initial Page Load

Initial load

After Visiting Other Views

User's image

Microsoft 365 and Office | SharePoint | For business | Windows
{count} votes

Answer accepted by question author
  1. Yanli Jiang - MSFT 31,666 Reputation points Microsoft External Staff
    2023-09-18T06:04:46.2266667+00:00

    Hi @Vanessa ,

    Great to know that and thanks for sharing the update here.

    By the way, since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others.". and according to the scenario introduced here: Answering your own questions on Microsoft Q&A, I would make a brief summary of this thread:

    [SharePoint modern list all-item calendar view not rendering JSON coding on initial loading of page]

    Issue Symptom:
    I have JSON code that colors the title depending on the value of the activity column in a list calendar. I have embedded a web part of the calendar. When I go the page, the color coding doesn't render in the Calendar All Items view upon loading.

    If I select another view that view renders the color for the qualifying item. Going back to the Calendar All Items view, the qualified items are colored.

    Why isn't the JSON working when the page is initially loaded, or the page is revisited?

    The color appears on views of the calendar upon loading but not the Calendar - All Items upon initial loading.

    Initial Page Load

    Initial load

    After Visiting Other Views

    User's image

    Current status:
    I set the filter on the set to a meaningless value (Activity is not equal to Something) and the JSON renders upon initial load.

    You could click the "Accept Answer" button for this summary to close this thread, and this can make it easier for other community members to see the useful information when reading this thread. Thanks for your understanding!

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.