HTML Form Entry - Limiting the dates of the obs date picker

I am looking for ways of setting the minimum or maximum values for dates within the obs tab for dates. There is a current restriction for future dates, but I am looking for an option of restricting the date to say not more than an encounterDate or a specific time period

@mogoodrich @mseaton @arbaughj @darius


Hmmm… you can control the date range for the encounter date picker via javascript… don’t know if it is well-documented, but you can see an example here:

This probably doesn’t work out-of-the-box for the obs date picker, but it’s possible there is a pattern you could follow here, I haven’t looked into it in too much detail.

Take care, Mark

I have always had to check this on form submit or field focus change using JavaScript. It’d be nice if there was an easier way.