custom calendar validation and another question |
5/3/2010 15:28:11 | |
| ASPRunnerPro General questions | ||
|
T
tone21705 author
On the Add/Edit pages I would like to make sure that the date picked by the user is equal to the current day and no later than 1 year from then. http://jqueryui.com/demos/datepicker/#min-max
http://www.asprunner.com/forums/topic/14314-how-to-ensure-date-entered-is-today-or-later/page__hl__calendar%20today__fromsearch__1
|
||
|
|
Sergey Kornilov admin 5/5/2010 |
|
While we don't have an option to limit date range in datepicker you can validate dates in events like BeforeAdd and BeforeEdit. if CDate(values("DateField)) > DateAdd("yyyy",1,Now()) then
var ctrl = Runner.getControl(pageid, 'Make'); |
|
|
T
|
tone21705 author 5/6/2010 |
|
The top one worked perfectly, thanks! |
|
|
|
Sergey Kornilov admin 5/6/2010 |
|
Forgot to mention that. Javascript code needs to be placed to 'Javascript OnLoad' event of Add/Edit pages. |
|
|
J
|
jackieh 5/6/2010 |
|
How would I also hide the label for that Model text box? |
|