@action('form_example', method=['GET', 'POST']) @action.uses('form_example.html', session) def form_example(): form = Form([ Field('product_name'), Field('product_quantity', 'integer')], formstyle=FormStyleBulma) if form.accepted: # Do something with form.vars['product_name'] and form.vars['product_quantity'] redirect(URL('index')) return dict(form=form)
--
You received this message because you are subscribed to the Google Groups "py4web" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4web+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/py4web/30b1efb7-1030-4c5d-b212-c8c72e3723e8n%40googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "py4web" group.
To unsubscribe from this group and stop receiving emails from it, send an email to py4web+un...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/py4web/00d45e7b-000e-4428-a339-36b079913b17n%40googlegroups.com.

To view this discussion on the web visit https://groups.google.com/d/msgid/py4web/881d024f-f428-4151-a7d1-1291f43c2c43n%40googlegroups.com.
The value is indeed populated but just not displayed:
Am Di., 13. Apr. 2021 um 22:22 Uhr schrieb Kevin Keller <kell...@gmail.com>:
Oh, also, it looks like you're looping through some records to set the default. I think that is effectively setting your default to the value from the last record. The default isn't set per row, it is set on the field once.Am I reading that correctly? It's hard to be certain with the poor formatting options that google groups offer.-Jim