Created this patch to add a minimum value for date fields, disables past dates on calendar and validates the dropdown inputs on submit.
| Comment | File | Size | Author |
|---|---|---|---|
| webform-minDate.patch | 3.45 KB | koshea |
Created this patch to add a minimum value for date fields, disables past dates on calendar and validates the dropdown inputs on submit.
| Comment | File | Size | Author |
|---|---|---|---|
| webform-minDate.patch | 3.45 KB | koshea |
Comments
Comment #1
quicksketchCould 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.
Comment #2
koshea commentedI 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.
Comment #3
ice5nake commentedI 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.