Runtime components : Channels components : HTML Channel : Reference : Custom JSP tags : CheckBoxTag
  
CheckBoxTag
A CheckBoxTag references a DataField in the context hierarchy and creates an HTML check input element.
Mandatory attributes
dataName, value
Attributes
dataName
Name of the DataField in the context hierarchy. If the DataField is read only, in Internet Explorer the check box is also read only.
When creating the check box, the toolkit retrieves the value of the DataField in the context and checks the check box if this value matches the value attribute. If a form containing a check box is submitted, the context's element named dataName is set with the check box value.
value
Value of the check box
style
Style for the check box
Default value: null
custom
Adds attributes to the input element. The following is the format of this attribute:
custom="att1Name=\"att1Value\
"att2Name=\"att2Value\".."
Default value: null
Example
<H1>Using the Checkbox Tag</H1>
<dse:form name="f1" nextEventName="ok">
  <table><tr><td valign="top">
  <dse:check dataName="doNotUse" value="Y"/></td><td>
    Please do not use the information collected here<br>
    for future marketing or promotional contacts or<br>
    other communications beyond the scope.</td></tr><tr><td>
  <dse:check dataName="doSend" value="Y"/></td><td>
    Yes! you may also send me relevant information by email.
  </td></tr></table>
</dse:form>
Go up to
Custom JSP tags