Uploaded image for project: 'Forms'
  1. Forms
  2. FORMS-67

Validating a form with an empty date field cause an error

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • 1.0
    • None
    • Back Save
    • None

      How to reproduce

      • connect to cms
      • edit a content
      • add a form
      • add a simple text field, set rule Date
      • save
      • fill the form and let the date blank

      Actual behavior

      • A new page is displayed with:
        The form contains the following errors, please use the back function of your browser to go back to the previous page and correct it :
        Date ? : The value must be a date using the following pattern YYYY-MM-DD (for example 2010-12-31)
      • the title of the page is messages_fr.xml

      Expected behavior

      • No new page when the date is invalid
      • No page title messages_*.xml
      • No error when the date is not mandatory and is empty
      • the date should accept more than one pattern, for example YYYY/MM/DD or YYYY-MM-DD or...

            Unassigned Unassigned
            fravetier Frederic Ravetier (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: