Use the IS_DATE_IN_RANGE validator -- see 
http://web2py.com/books/default/chapter/29/7#Validators for details.

Anthony

On Thursday, August 23, 2012 10:24:14 PM UTC-4, Stephen Logan wrote:
>
> Hi Guys
> Having a crack at my first webapp and stuck on the model:(
>
> What i want to do is record how far i have run on a particular day... 
> QUESTION: how do i prevent a user from selecting a day in the future? as 
> it is invalid....
>
>
> Thanks in Advance
>
> Stephen
>

-- 



Reply via email to