Yup that fixed it. Will there be a similar problem with textareas too? Either way the patch you suggested works perfectly for my needs. Thanks
On Mar 25, 2:55 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > You may be on to somthing.... > > Please run this test. In gluon/html.py line 1145 replace > > elif t == 'text': > > with > > elif t == 'text' or t=='hidden': > > Does it now behave as you expect? If so I will patch web2py with this > change. > > Massimo > > On Mar 25, 1:51 pm, Ian Reinhart Geiser <ian.gei...@gmail.com> wrote: > > > greetings i have a form with a hidden input field that i modify from > > the javascript. for some reason on a failure of form's accept method > > i get all my values repopulated in the form save for the hidden ones. > > now what is strange is if i take the same input and make it a text > > field it works perfectly. is this a bug, a feature, or just me being > > confused. this is my code snippet below: > > [ LEGEND( SPAN( self.title, _class='group_selector_title'), > > SELECT( _class="group_selector_select", _name=self.name, > > _onchange="toggleDivs(this.value, this.parentNode.parentNode)")), > > INPUT( _type='hidden', _id = self.attributes['_id'] + '__state', _name > > = '___state', _value = '', value='dir' ) ] > > > It always comes back '' as a hidden type, but it will behave correctly > > with a text type... > > > -ian reinhart geiser -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.