DateBox

Top  Previous  Next

  <span mo:type="DateBox" mo:field="true" mo:name="${fieldName}" mo:needsInit="true" 
       mo:iValue="${initialValue}"
       mo:props="
          valueFormat     : '${valueFormat}', 
          displayFormat   : '${displayFormat}', 
          submitFormat    : '${submitFormat}', 
          defaultDate     : '${defaultDate}', 
          fromDate        : '${fromDate}', 
          toDate          : '${toDate}', 
          nonBlank        : ${nonBlank}
          valHandler      : ${valHandler},
          valErrorHandler : ${valErrorHandler}">
    <input type="hidden" name="pf_${fieldName}"/>
    <input type="text" name="__t" onchange="DateMgr.dateChanged(this);" />
  </span>

 

${fieldName}

The name of the ProcessField

${initialValue}

The initial value of the field

${valueFormat}

The format of the initial value. See Date Formatting.

${displayFormat}

The representation and the edit format of the date value. See Date Formatting.

${submitFormat}

The format of the value to submit. See Date Formatting.

${defaultDate}

If initial value is not provided with mo:iValue attribute the value defined with this property is used.

${fromDate}

The minimum date to be entered

${toDate}

The maximum date to be entered

${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.