Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to implement FullCalendar.io as ServiceNow Widget?

Aditi6
Tera Contributor

Hi,

I tried implementing Full Calendar widget where records must get populated in calendar dates. 

I am able to extract data from table in json format, as shown in screenshot below :-

find_real_file.png

But when trying to pass this json, data is not getting populated, screenshot appended below :-

find_real_file.png

Please suggest.

Regards,

Aditi

1 ACCEPTED SOLUTION

kklosterman
Tera Guru

What version of FullCalendar are you using?

 

You may have the event object formatted wrong

https://fullcalendar.io/docs/v3/events-array

 

startdate I think needs to be start and enddate needs to be end ?

name needs to be title

 

You may also need to look at calling renderEvent(s)

https://fullcalendar.io/docs/v3/rerenderEvents

 

Please mark this response as correct and or helpful if i've answered your question correctly or was a helpful response.

View solution in original post

3 REPLIES 3

kklosterman
Tera Guru

What version of FullCalendar are you using?

 

You may have the event object formatted wrong

https://fullcalendar.io/docs/v3/events-array

 

startdate I think needs to be start and enddate needs to be end ?

name needs to be title

 

You may also need to look at calling renderEvent(s)

https://fullcalendar.io/docs/v3/rerenderEvents

 

Please mark this response as correct and or helpful if i've answered your question correctly or was a helpful response.

Aditi6
Tera Contributor

Hi,

Thanks for your response, now i am able to populate the data. I am using v4 Version.

Regards,

Aditi

 

4bode
Kilo Contributor

How did you get v4 to work?  3.5.1 renders properly for me with main.min. css/js .  But swapping those with v4 it doesn't render at all.  I get listener errors.