value="your default"
In the context of the form from the docs it would be:
register_form = form.Form(
form.Textbox("username", description="Username", value="YOUR
DEFAULT VALUE"),
)
On Dec 23, 11:58 pm, adelevie <[email protected]> wrote:
> Is there a way, using the web.form module to dynamically set the
> default value for for fields? For example, I want to allow users to
> edit entries from a database. When the entry is retrieved I want to
> output a form with a textarea (or textbox) with "value=" set to the
> current value of that database entry.
>
> Thanks,
> Alan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web.py" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/webpy?hl=en
-~----------~----~----~----~------~----~------~--~---