Sharepoint Calendar JSON

MeagLane 1 Reputation point
2021-07-16T14:01:06.643+00:00

Is there a JSON formula I can use to color the text of a choice fiend in a calendar list?

Example: I have a choice column with the options EROC or AROC - I would like EROC to be green text and AROC to be blue text on the calendar. What would the JSON be for that?

Thank you!

115388-json.jpg115463-json.jpg

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,946 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Echo Du_MSFT 17,196 Reputation points
    2021-07-19T06:31:28.723+00:00

    Hello @MeagLane ,

    Welcome to Q&A Forum!

    According to my research and search, We cannot set JSON formatting for Choice column in a Calendar list.
    However, you could try to the below workaround:

    Adding Colors to Event Categories with Overlay Feature:

    1.Create a Choice column naemd "Types" and set it as the required field.

    115776-11.png

    2.Create three Calendar Views

    115765-21.png

    ALL view:

    • Make this view the default and public view
    • Filter: Title is equal to null(empty)

    115759-22.png

    EROC view:

    • Make this view the public view
    • Filter: Types is equal to EROC

    115699-23.png

    AROC view:

    • Make this view the public view
    • Filter: Types is equal to AROC

    115766-24.png

    3.Go to the Calendar list, on the CALENDAR tab, click on Calendars Overlay.

    115740-31.png

    4.On the Calendar Overlay Settings page, click on New Calendar to create two calendars

    115747-41.png

    EROC:

    • Please click "Resolve" button, and select the corresponding list and list view
    • Select the "Always show" checkbox.

    115791-42.png

    AROC:

    • Please click "Resolve" button, and select the corresponding list and list view
    • Select the "Always show" checkbox.

    115760-43.png

    5.Go to the Calendar list, you will see as below:

    115748-5.png

    Thanks,
    Echo Du

    ================================

    If an Answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.


Your answer

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