Try if form.accepts(...,keepvalues=True) does what you ask.

On Jul 8, 12:40 pm, Yarko Tymciurak <yark...@gmail.com> wrote:
> On Wed, Jul 8, 2009 at 4:45 AM, annet <annet.verm...@gmail.com> wrote:
>
> > I wonder whether it is possible to have a drop-box that keeps its
> > previous value. For Instance, I have a table in which I insert days
> > and facilities. On some days the facility is open several slots of
> > time. In the create form, when I submit e.g.
>
> > Monday    Creche    10 am - 2 pm
>
> > ... I would like the next create form to keep the day and facility
> > i.e. Monday and Creche. Both fields are drop boxes.
>
> The question to ask here is what would it take to have a drop box keep the
> previous value as default.
>
> This should be a relatively simple quesition if you are talking about a
> value last saved - boiling down to "now that I've selected / retrieved the
> last value, how do I programmatically set that as the default in the form?"
>
>
>
> > Kind regards,
>
> > Annet.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to 
web2py+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to