Why not use the session to carry that value forward?  If you put it
into the browser you really need to validate it, under the general
security rule of not trusting anything that comes from the browser.

Also I believe LABEL helper should be used differently.  It renders an
html label tag.

Here's a reference:
http://www.w3schools.com/tags/tag_label.asp

On Sep 29, 9:17 am, Roberto Perdomo <[email protected]> wrote:
> Do the form normally and try this with jquery:
>
>     $('#totalitems').hide();
>
> 2011/9/28 Anthony <[email protected]>
>
>
>
> > I think the 'hidden' argument goes inside FORM() -- looks like you've got
> > it inside DIV().
>
> > Anthony
>
> > On Wednesday, September 28, 2011 10:14:40 PM UTC-4, Joseph Jude wrote:
>
> >> Hi,
> >> I define the below form in controller but the hidden field is not present
> >> in the view. Note that, field 'totalitems' is not in the db. Let me know 
> >> how
> >> to add hidden fields to FORM.
>
> >> form = FORM(
> >> DIV(
> >> LABEL("Checklist Items:"),
> >> UL(
> >> SPAN(INPUT(_type="text", _name="citems"),
> >> IMG(_class="add", _src=URL('static', 'images/add.png')),
> >> IMG(_class="remove",_src=URL('**static', 'images/delete.png'))),
> >> ),
> >> hidden=dict(totalitems='1')
> >> ))
> >> Thank you,
> >> Joseph

Reply via email to