13
Views
4
Comments
Solved
How to detect month and year change events in DatePicker?

Hi all,

Is there a way to trigger an event when a user clicks < or > in the built-in DatePicker to change the month or year? Also, is it possible to display a calendar on the screen all the time instead of only showing it as a popup when clicking the input? If the built-in widget doesn’t support this, what’s the best approach to achieve it? 

Thanks in advance.

2025-08-07 06-30-56
Amit J
Champion
Solution

Can you please check the oml, its working as you want the result ,

Demo URL

Use the class to generate any event.

ProvaEmanuele_2.oml
UserImage.jpg
Juvairiya Behzad

Hi  Amit Jain,

Thank you so much.


2023-08-18 10-40-36
Deepak M

1. To target your DatePicker specifically, find the Style Class in the widget properties

Use the OnReady event of the screen or block to run JavaScript that detects clicks on the month/year arrows and call your actions as needed. 


2. Use this action to make the date picker open.

Note: It will be closed if you clicked anywhere. If you want to keep it always open, call this action whenever you want and pass the values accordingly.

2025-08-07 06-30-56
Amit J
Champion

See below oml its working as expected 
Demo URL

Using css  class we can achieve as you want events 


ProvaEmanuele_2.oml
2025-08-07 06-30-56
Amit J
Champion
Solution

Can you please check the oml, its working as you want the result ,

Demo URL

Use the class to generate any event.

ProvaEmanuele_2.oml
UserImage.jpg
Juvairiya Behzad

Hi  Amit Jain,

Thank you so much.


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.