AnsweredAssumed Answered

Validation of the input data on web forms as per schema

Question asked by rajrf on Sep 4, 2007
Latest reply on Sep 9, 2007 by arielb
I am new to Alfresco Webforms and need some help with validating the input data on web forms. I am giving the element data restrictions in the schema as follows but while creating the content using the webform, it does not seem to be validating the data(length or other patterns). It seems to be alerting only for empty fields but not enforcing the data fomats. Is there any flag that I need to enable for these data validations to work?

Also is it possible to plug in any custom javascript for enforcing data validations and hide/show functionality for certain fields?  

<xs:element name="SomeElementName">
      <xs:restriction base="xs:normalizedString">
         <xs:length value="5" fixed="true"/>
         <xs:whiteSpace value="collapse"/>
            <xs:pattern value="^SN[0-9]+"/>

Thanks in advance for your help,