Sorry for all this hassle.

I will do some more testing, but for now this is what I have working.
On my first page I have:

<div id='hidethis'>
{{for cbi in range(26,76):}}
<input name="{{=form[0][cbi][1][0]['_name']}}" type=checkbox
{{='checked="checked"' if str(form[0][cbi][1][0]['_checked']) ==
'checked' else ''}}>
{{pass}}
</div>

I have hidden actual checkbox elements using css on the div
(#hidethis{display:none;}

The values are being kept now in all cases.  For some reason, the only
way the checkboxes will keep their values between submits is if they
actually exist on a page.

I will make a simple example and post what i find.

thx for everyones input

-wes

On Fri, Nov 21, 2008 at 10:26 AM, mdipierro <[EMAIL PROTECTED]> wrote:
>
> I am sure there is no bug here. Wes, I suspect you are trying to
> reinvent something that exist but I cannot figure out what.
> If you just want to hide fields you can do:
>
> <script>
> $(document).ready(function() {
>  $('#tablename_fieldname__row').hide();
>  // list other fields...
> });
> </script>

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to