default checked radios, checkboxes

4 views
Skip to first unread message

bwp

unread,
Nov 26, 2007, 4:03:59 PM11/26/07
to Web Forms 2.0 Implementation
Hello,

I had a question about including pre-checked radio buttons,
checkboxes, and pre-selected options in a select element.
How do I default check radio and checkbox input elements, and default
select certain options in a select element, so that they display when
the Add button is clicked (right now, IE6 does not show any checked
radio buttons or checkboxes, or 'selected' selects, when these
attributes are included in the repeat template). Firefox 2.0 does not
have this problem, however.

I'm currently using Version: 0.8.2.2 (2007-03-28) of the repetition
model implementation.

In other words, if the template includes an input element:
<input type="radio" checked="checked" ... />
and I click the Add button to create a new row, in IE6 the radio
button is not displayed as checked. Thanks!

Weston Ruter

unread,
Nov 26, 2007, 6:16:07 PM11/26/07
to webf...@googlegroups.com
This issue should have been fixed in later versions of Web Forms 2.0. Please try using it: http://code.google.com/p/webforms2/

bwp

unread,
Nov 27, 2007, 1:06:05 PM11/27/07
to Web Forms 2.0 Implementation
Thanks for responding so quickly. I appreciate it.
I swapped in the new version, and the only element that didn't work
was select elements that have pre-selected options
(selected="selected" attributes). Thanks very much.

On Nov 26, 6:16 pm, "Weston Ruter" <westonru...@gmail.com> wrote:
> This issue should have been fixed in later versions of Web Forms 2.0. Please
> try using it:http://code.google.com/p/webforms2/
>

Weston Ruter

unread,
Nov 27, 2007, 1:52:38 PM11/27/07
to webf...@googlegroups.com
I'll try to take a look at that tonight. Thanks for bringing this to my attention.

bwp

unread,
Nov 28, 2007, 11:21:03 AM11/28/07
to Web Forms 2.0 Implementation
Thanks for your responsiveness.
I think something along the line of clone.selected=true would do the
trick, if the node being cloned was an option element (object). But
I'm sure it's more complicated than that.

On Nov 27, 1:52 pm, "Weston Ruter" <westonru...@gmail.com> wrote:
> I'll try to take a look at that tonight. Thanks for bringing this to my
> attention.
>

Weston Ruter

unread,
Nov 29, 2007, 11:49:31 PM11/29/07
to webf...@googlegroups.com
Actually, not much more complicated than that! I just released a new version that fixes this MSIE issue with pre-selected options (see update test case ).

Download version 0.5.2: http://code.google.com/p/webforms2/

Thanks for pointing out this issue.
Reply all
Reply to author
Forward
0 new messages