Please identify what part of this rather long file is relevant to your 
question.  You might also want to look at the documentation for SQLFORM 
with regard ti how to use keepvalues.

On Wednesday, May 6, 2020 at 9:44:37 AM UTC-4, Anuj Mahawar wrote:
>
> Yes, its part of the SQLFORM. I have attached my file from the controller. 
> Could you please let me know where do I need to make the changes (i.e. 
> keepvalues = True)
>
> Regards,
> Anuj
>
> On Tuesday, May 5, 2020 at 6:38:29 PM UTC+5:30, Scott Hunter wrote:
>>
>> 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/d77ee4d0-7c07-42db-bd9c-3715e947b935%40googlegroups.com.

Reply via email to