Disable dates on Date picker field

maheshkhatal
Mega Sage

Hello ,

        I have a requirement where if the date selected is more than 30 days compared to the current date, then disable all the dates after 30 days. I know I need to deal here with Macros, UI Pages, etc. I need to know what approach I can follow here.

See the example below.

maheshkhatal_0-1707500293783.png

 

 

P.S.: I do not want client script manipulations of alter or anything like that.

Thank you,

Mahesh.

2 REPLIES 2

Community Alums
Not applicable

Hi @maheshkhatal ,

Without doing Client Script manipulations, it's not possible to validate your condition on the date picker and disable the dates. You would require to write an onChange script on that field & validate your conditions.

 

 

Sandeep, thanks for taking out your time and giving a thought to it. I am not looking at onChange client script at the moment.