Created this patch to add a minimum value for date fields, disables past dates on calendar and validates the dropdown inputs on submit.

CommentFileSizeAuthor
webform-minDate.patch3.45 KBkoshea

Comments

quicksketch’s picture

Status: Needs review » Closed (duplicate)

Could you reroll your patch to accommodate #301949: Add option to only allow dates in the past/future? Adding something for just minimum but not maximum seems like half-fixing the problem. I'm also not sure about terms like "Minimum" and "Maximum". See the suggestions in that issue.

koshea’s picture

I will take a look at that issue. My use case for this was forcing dates to be a week in the future at least, this use is not described in your task are you sure this is a duplicate? Adding a maximum would be trivial and you could then accomplish your needs by setting either value to now.

ice5nake’s picture

I am looking for this functionality myself. However I am running 3.5 and I fear this patch won't work. I haven't diffed the files it patches so I don't know.

@quicksketch, I've update #301949: Add option to only allow dates in the past/future

@koshea, I bet if you merged this patch with the newest version and posted it at #301949 our chatter could get this pushed through.