How to add new control to frappe

I am trying to add now Hijri calander to the framework insted of gregorian calendar.

Could you tell me where i have to modify control.js file to add new code?

Regards,
Mohammed Redha

@Mohammed_Redha, this is not a silly change, do you need add support at backed to support Hijri dates, since the backend only understand gregorian calendar. It will directly affects the database and the Python code.

A simple approach can be, the use of custom fields, just to display the date in Hijri format, where it is really required!

1 Like

Thanks @max_morais_dmm for your replay, I will not change the backend for date it is just for display, the end user will use Hijri colander widget in form to chose date and in controller it will be converted to Gregorian date.

I need to now how to add new control to frappe because I am planning to add new widget control in future.

Regards,
Mohammed Redha