OptionBox

Top  Previous  Next

  <span mo:name="${fieldName}" mo:type="OptionBox" mo:field="true" mo:needsInit="true"
       mo:iValue="${initialValue}"
       mo:props="warnColor:'${warnColor}', nonBlank:${nonBlank},
                 valHandler:${valHandler}, valErrorHandler:${valErrorHandler}">
 
    <input type="radio" name="__t_${fieldName}_{position()}" value="M" 
       onclick="PMgr.selectOption(this)" /> Male <br/>
 
    <input type="radio" name="__t_${fieldName}_{position()}" value="F" 
       onclick="PMgr.selectOption(this)" /> Female
 
    <input type="hidden" name="pf_${fieldName}"/>
  </span>

 

${fieldName}

The name of the ProcessField

${initialValue}

The initial value of the field

${warnColor}

The color code to use to highlight the background of the OptionBox along with a warning message such as "Field cannot be blank"

${nonBlank}

If "true" then the field cannot be left blank

${valHandler}

The name of the validation handler function

${valErrorHandler}

The name of the validation error handler function

 

Required Javascript(s)

  <head> 
    <script type="text/javascript" src="moremotion/face/Process/OptionBox.js"></script>
  </head>