Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    DateRangeValidator in xml datasource

    Hi,
    is it possible to define max and min values for dateRangeValidator in xml datasource?
    I would like to do something like that:

    Code:
    <!-- NOT WORKING  -->
    <field name="validityDateFrom" type="date" required="true" nativeName="VALIDITY_START_DATE" escapeHTML="true">
      <validators>
        <validator type="dateRangeValidator" min="new Date(2014,10,28)" max="new Date(2014,10,29)"/>
      </validators>
    </field>
    WARN:Validator:validator not understood on item

    #2
    I was using wrong validator. This is working.

    Code:
    <validator type="dateRange" min="2014-10-10" max="2014-10-11"/>

    Comment

    Working...
    X