On Wednesday, February 6, 2019 at 4:49:43 AM UTC-8, Ben Duncan wrote:
>
> Ok, I found the answer. It's by putting in the entry ' autocomplete="off" 
> ' in the <form element that
> does not allow previous values to be accessed. This is the behavior I was 
> looking for.
>
>
Ah, interesting.  I have a field where the browser's suggestions are more 
distracting than helpful.   Some exploration will follow.

But thanks Dave.  
>
> From my testing and sample, I probably, like you will be using the FORM 
> construct for this project rather than
> the SQLFORM libraries ...
>
>
>
> *Ben Duncan*
> DBA / Chief Software Architect 
> Mississippi State Supreme Court
> Electronic Filing Division
>
>
Good luck!

/dps
 

>
> On Tue, Feb 5, 2019 at 5:28 PM Dave S <snide...@gmail.com <javascript:>> 
> wrote:
>
>>
>>
>> On Tuesday, February 5, 2019 at 1:17:50 PM UTC-8, Ben Duncan wrote:
>>>
>>> What is the best way to clear a form in web2py after it has been 
>>> submitted.
>>>
>>> Thanks
>>>
>>> *Ben Duncan*
>>> DBA / Chief Software Architect 
>>> Mississippi State Supreme Court
>>> Electronic Filing Division
>>>
>>
>> If you're using the  usual FORM() and SQLFORM() helpers, your controller 
>> will either redirect away from the form, or return it again.  Unless you 
>> use "keepvalues=True"), the form will be cleared when it is redrawn.  Note 
>> that the user's browser may suggest previous input when the user starts 
>> entering values.
>>
>> If you're using an HTML FORM tag directly, you may need to refresh the 
>> page.  I don't speak from experience (although I've done FORM tags in other 
>> contexts).
>>
>> I don't know much about SQLFORM.factory/grid as I've only made limited 
>> use of them.  SQLTABLE falls outside your question.
>>
>> /dps
>>
>> -- 
>> 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+un...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>

-- 
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.
For more options, visit https://groups.google.com/d/optout.

Reply via email to