Date Range function to restrict Date Entry in Date Field


Vinit Bagul, Prashant Zanjugade

2021-08-16 17:00:52


How to restrict date field for selecting a date within a particular date range?

1. Need to add JS function in the date field. (Main Form)

For dlist's date field, add function as JS:daterange('fieldid_0','01/01/1930','today');

Example is below:-

Given below are different range support available in the date range function:

daterange('fieldid','01/01/1930','today-1');

daterange(''fieldid','today-30','today');

aterange('fieldid','01/01/1930','');

daterange('fieldid','01/01/1930','25/11/2019');

daterange('fieldid','today','25/11/2019');

daterange('fieldid','today','');

daterange('fieldid','fystart','fyend');

daterange('fieldid','mstart','mend');