Check box default checked

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Check box default checked

JohnBampton
How do you check a checkbox by default?

 <xforms:select ref="cov_rec" appearance="full">
                          <xforms:choices><xforms:item><xforms:label>Recommendations</xforms:label><xforms:value>1</xforms:value></xforms:item></xforms:choices>
                            <xforms:alert></xforms:alert>
                          </xforms:select>
Reply | Threaded
Open this post in threaded view
|

Re: Check box default checked

Hank Ratzesberger

Hi John,

What value is set in the model that the control is bound to
when it is checked?  Then put that value in the model before
it is displayed.

If I may so top post,
Hank

On Nov 19, 2009, at 8:53 PM, JohnBampton wrote:

>
> How do you check a checkbox by default?
>
>  <xforms:select ref="cov_rec" appearance="full">
>
> <xforms:choices><xforms:item><xforms:label>Recommendations</
> xforms:label><xforms:value>1</xforms:value></xforms:item></
> xforms:choices>
>                             <xforms:alert></xforms:alert>
>                           </xforms:select>
Hank Ratzesberger
NEES@UCSB
Institute for Crustal Studies,
University of California, Santa Barbara
805-893-8042







--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws