Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-2636

Marking a field as mandatory fails to trigger validation for form fields

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Top
    • Resolution: Fixed
    • r2.06.04 (m13 - rc5)
    • r2.07.00
    • None
    • None

    Description

      I marked a field in the .cnd as mandatory (not a nested node)

      [myproject:externallink] > hippostd:publishable, hippostd:publishableSummary, hippo:document orderable

      • myproject:name (string) mandatory
      • myproject:description (string)
      • myproject:url (string) mandatory
      • myproject:title (string)

      and in the document node type definition also marked as true for mandatory

      <sv:node sv:name="hippo:field">
      <sv:property sv:name="jcr:primaryType" sv:type="Name">
      <sv:value>hippo:field</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:mandatory" sv:type="Boolean">
      <sv:value>true</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:name" sv:type="String">
      <sv:value>url</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:path" sv:type="String">
      <sv:value>myproject:url</sv:value>
      </sv:property>
      <sv:property sv:name="hippo:type" sv:type="String">
      <sv:value>String</sv:value>
      </sv:property>
      </sv:node>

      although the fields display as if mandatory (* marked), pressing 'save' in the cms editor showns no validation message when the field is empty.

      Attachments

        Issue Links

          Activity

            People

              fvlankvelt Frank van Lankvelt (Inactive)
              jreijn Jeroen Reijn (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: