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


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

Reload and check it, please.

Thank You!

Beautiful! That worked

Thank you very much sir :slight_smile: