Why do your hidden fields need ids?
Note, you can always create the hidden fields manually rather then using
the "hidden" argument:
hidden = lambda f, v: INPUT(_name=f.name, _id=f.name, _type='text', _value=v
)
form = SQLFORM.factory(Field('hidden_field', widget=hidden))
Anthony
On Thursday, July 6, 2017 at 3:52:26 PM UTC-4, backseat wrote:
>
> I want to use javascript to update a hidden field, but I can't find a way
> to give a hidden field an id which would make it much easier to update.
>
> SQLFORM.factory(..., hidden=dict(a="",b=""))
>
>
>
> will create the hidden fields, but not with an id.
>
> What's the best way to create non-database hidden fields with an id?
>
--
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 [email protected].
For more options, visit https://groups.google.com/d/optout.