I don't understand the use case... What the purpose of updating an hidden
field? You can certainly create a dom element with an id and hidden it, but
the usage for such a field is to manipulate dom element with js before
reinject the proper selected data into the proper form field in order to
the information to get parsed and updated in the back end...

Maybe you should disclosed what you exactly intended to do, instead of
asking how to do each little step, so we can better help you that way...

Richard

On Thu, Jul 6, 2017 at 3:52 PM, backseat <kac...@gmail.com> 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 web2py+unsubscr...@googlegroups.com.
> 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