• Resolved alexrehberger9

    (@alexrehberger9)


    Hi! I’m attempting to set the default view to list. I copied the instructions and code at https://michielvaneerd.github.io/privategooglecalendars/examples/ , however whenever I paste that in the FullCalendar config text field, the field turns red and I get a “malformed JSON” error. The calendar is not affected on the webpage.

    Here’s the section from the site I was attempting to use:
    {
    “header”: {
    “left”: “prev,next today”,
    “center”: “title”,
    “right”: “dayGridMonth,listWeek”
    },
    defaultView: “listWeek”
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author michielve

    (@michielve)

    Hi you need to put defaultView between quotes as well:

    {
    “header”: {
    “left”: “prev,next today”,
    “center”: “title”,
    “right”: “dayGridMonth,listWeek”
    },
    “defaultView”: “listWeek”
    }

    I’ll update the documentation!

    Thread Starter alexrehberger9

    (@alexrehberger9)

    That worked, thank you so much!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘FullCallendar Config Malformed JSON Error’ is closed to new replies.