Change calendar default view

Hi guys,
We are using the calendar a lot in our ERPNext

It is an issue now because every time we open the calendar it opens in List View. We need the calendar to open in Calendar View.

Any idea how to accomplish this on version 13?

Thank you in advance.

Hi @Iulian_Olaru,

Please apply a custom/client script.

DocType: Event
Apply To: List

Script:

frappe.listview_settings['Event'].onload = function(listview) {
    window.location.href = "/app/event/view/calendar/default";
}; 

Reload and check it, please.

Thank You!

3 Likes

Beautiful! That worked

Thank you very much sir :slight_smile:

For the lead doctype, I created the calendar view. But in default, it’s not showing the option of calender view though it is been created. So how to add the calendar view there?

Calendar view add in the option for checking its example.

Please set your field according.

Thank You!