[web2py] Re: Adding hidden field to a form

2011-10-04 Thread TheSweetlink
I believe your FORM needs a totalitems field or INPUT. At least that's what I experienced with SQLFORM.factory. Needed a Field('totalitems', readable=False, writable=False) to match if I was passing hidden=dict(totalitems='1'). I often choose SQLFORM or .factory for the ability to customize the

[web2py] Re: Adding hidden field to a form

2011-10-04 Thread puercoespin
Not sure that's your asking for: INPUT(_type='hidden', _name='_hiddenName', _value='hiddenValue')

[web2py] Re: Adding hidden field to a form

2011-09-29 Thread Cliff
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

Re: [web2py] Re: Adding hidden field to a form

2011-09-29 Thread Roberto Perdomo
Do the form normally and try this with jquery: $('#totalitems').hide(); 2011/9/28 Anthony > 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 de

[web2py] Re: Adding hidden field to a form

2011-09-28 Thread Anthony
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 'totalite