well, this does not work either, I tried using the default value
'checked' then tried 'true', but when I save the form the value is not
retained:
{{for cbi in range(26,76):}}
<input name="{{=form[0][cbi][1][0]['_name']}}" type=hidden
value="{{='true' if str(form[0][cbi][1][0]['_checked']) in 'checked'
else ''}}">
{{pass}}
It seems that there is no such think as a hidden checkbox, because:
<input name='this' type="hidden" value="checked">
when submitted does not keep its value, it gets set to unchecked when
saved. hmmm...
On Fri, Nov 21, 2008 at 8:42 AM, Wes James <[EMAIL PROTECTED]> wrote:
> This is how I have my fields set:
>
> SQLField("fieldname","boolean")
>
> I'll need to do what billf said, loop through my checkbox fields and
> set them as hidden.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---