[Seaside] [Bootstrap] Hidden input messing with checkbox

Mariano Martinez Peck marianopeck at gmail.com
Fri Nov 4 03:47:09 UTC 2016


Hi Cyril,

It would be nice if you can paste your seaside render code besides the
resulting html.

Cheers,

On Thu, Nov 3, 2016 at 7:05 PM, Cyril Ferlicot D. <cyril.ferlicot at gmail.com>
wrote:

> Hi!
>
> I am using bootstrap for a university project and someone of my team is
> making mockups and I reproduce them with Seaside. But I have a problem
> with checkboxes.
>
> He gave me this code:
>
> <div class="checkbox">
>   <input type="checkbox" id="question1Answer1">
>   <label for="question1Answer1">
>     Aenean semper rutrum nisi.
>   </label>
> </div>
>
>
> But seaside generate this:
>
> <div class="checkbox">
>   <input type="checkbox" name="10" id="question1Answer1">
>   <input type="hidden" name="11">
>   <label for="question1Answer1">
>     Aenean semper rutrum nisi.
>   </label>
> </div>
>
>
> Because of the hidden input I cannot check the checkbox. If I remove it
> in the DOM, I can.
>
> I think I must not be the first to have this problem. Does someone have
> a workaroud?
>
> Thanks!
>
> --
> Cyril Ferlicot
>
> http://www.synectique.eu
>
> 2 rue Jacques Prévert 01,
> 59650 Villeneuve d'ascq France
>
>
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
>


-- 
Mariano
http://marianopeck.wordpress.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20161104/d8a59eee/attachment.htm


More information about the seaside mailing list