NumberBox

Top  Previous  Next

  <span mo:type="NumberBox" mo:field="true" mo:name="${fieldName}" mo:needsInit="true" 
       mo:iValue="${initialValue}"
       mo:props="
          allowSign       : ${allowSign}
          precisionDigits : ${precisionDigits}
          round           : ${round}
          padZeros        : ${padZeros}
          nonBlank        : ${nonBlank}
          validValues     : '${validValues}', 
          valHandler      : ${valHandler}
          valErrorHandler : ${valErrorHandler}
       ">
    <input type="hidden" name="pf_${fieldName}"/>
    <input type="text" name="__t"  
           onblur="if (NumMgr.formatInput(this,true) == false) return false;" 
           onkeyup="if (NumMgr.formatInput(this) == false) return false;" />
  </span>

 

${fieldName}

The name of the ProcessField

${initialValue}

The initial value of the field

${allowSign}

Specify "true" if the value can be negative.

${precisionDigits}

The number of the precision digits that can be entered after the decimal symbol.

${round}

Specify "true" to round the displayed value

${padZeros}

Specify "true" to pad zeros at the right side when precision digits are less than the specified.

${nonBlank}

If "true" then the field cannot be left blank

${validValues}

The valid values separated with ";" characters

${valHandler}

The name of the validation handler function

${valErrorHandler}

The name of the validation error handler function