Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

If you use  In-house (downloaded and installed on your computer), you can change ' built-in patterns for the Email control by editing the ''types.xsd'' file located included in the <frevvo installdir>/tomcat/data/users directorywebapps/frevvo.war file. This file includes the email type definition shown below, and you can edit its pattern value. See the example in Phone pattern for instructions to modify the types.xsd file.

Code Block
<xsd:simpleType name="emailType">       
          <xsd:restriction base="xsd:string">        
                  <xsd:pattern value="[a-zA-Z0-9\-_][a-zA-Z0-9\-\+_]*(\.[a-zA-Z0-9\-\+_]+)*@([a-zA-Z0-9\-_]+\.)+[a-zA-Z]{2,6}"/>         
          </xsd:restriction>    
</xsd:simpleType>

...

If you are using  In-house (downloaded and installed on your computer), you can change ' built-in patterns for the Phone control by:

  1. Edit <frevvo installdir>Stop  if it is running. 
  2. Unpack the frevvo.war file to a temporary location of your choice: e.g. c:\tmp. This will create a frevvo subfolder.
  3. Edit <tmp directory>/frevvo/WEB-INF/data/users/types.xsd<br>xsd,
  4. Change the element phoneType as follows:shown in the code block below: Save the changes to the types.xsd file. 
  5. Rezip all the files in the <tmp directory>/frevvo directory, even the ones you did not edit. 

  6. Copy the updated frevvo.war file to <frevvo installdir>/tomcat/webapps.
  7. Restart your  form server. Now all your phone controls will validate against this pattern.
Code Block
<xsd:simpleType name="phoneType">     
    <xsd:restriction base="xsd:string">         
        <xsd:pattern value="\d{2}-\d{4}-\d{4}"/>         
        <xsd:pattern value="\d{4}-\d{3}-\d{3}"/>
    </xsd:restriction> 
</xsd:simpleType>

...

If you are using  Online, you will not have access to types.xsd. You can override the pattern in the phone control by setting its pattern property. You can only restrict a built-in pattern (such as the phone control) but not change the pattern via the pattern property. For example you can add the pattern 203-\d{3}-\d{4}.  Now all phone numbers must start with area code 203.

...