DateText

Top  Previous  Next

DateText is a special Process Field. It can be used inside or outside of a ProcessRecord Element. It cannot be used as an input field and it is not included in the submits. It is provided as an Ajax compatible text element that formats a date.

  <span mo:type="DateText" mo:name="ORDERDATE" mo:needsInit="true" 
      mo:props="
         value         : '{ORDERDATE}',
         defaultDate   : 'today', 
         valueFormat   : 'yyyy.mm.dd', 
         displayFormat : 'dd mmm, yyyy'" />

 

See DateText Function Class in MoreMotion Face API.

Properties

value

The value of the date.

defaultDate

If the value is not available then the value defined with this property is used.

valueFormat

The format of the value. See Date Formatting.

displayFormat

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

 

Required Javascript Files

This element requires the following Javascript files are linked to the page in the HEAD section of the HTML document as follows.

  <head> 
    ...
    <script type="text/javascript" src="moremotion/face/DateNum/Date.js"></script>
    <script type="text/javascript" src="moremotion/face/_resources/<language-code>/DateNum.js"></script>
  </head>