If this is part of a form (which I have to guess at, since you have 
provided *no* details), you can use the `keepvalues` option to not reset 
the fields of a form.

On Tuesday, May 5, 2020 at 8:24:32 AM UTC-4, Anuj Mahawar wrote:
>
> Hey Scott, 
> Yeah, I meant that the date is resetting to the current date even though I 
> am selecting any previous date. Do you have any suggestions to change this 
> default behavior?
>
> On Tuesday, May 5, 2020 at 5:22:30 PM UTC+5:30, Scott Hunter wrote:
>>
>> What do you mean by "redirected"?  If you just mean that the date field 
>> is reset to the current date, that is the same default behavior for all 
>> input fields.
>>
>> On Tuesday, May 5, 2020 at 12:44:31 AM UTC-4, Anuj Mahawar wrote:
>>>
>>> I am a beginner to the web2py. I am building an application with a date 
>>> picker on the home page. The issue is - Whenever I try to edit a previous 
>>> day's record and submit, instead of on being on the same date, it is being 
>>> redirected to the current date page. e.g. suppose I have logged in and it 
>>> displays the current date i.e. 29 April 2020. When I try to edit a record 
>>> for 01 April 2020 and submit the entry, it is being redirected to the 
>>> current date i.e. 29 April 2020. Any idea why the application is behaving 
>>> like that?
>>>
>>>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/2c1f0cb7-0ba7-4f3b-a54b-bdc2d3f5ead1%40googlegroups.com.

Reply via email to