Versions Compared

Key

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

One of ' most powerful and useful features is its ability to automatically ensure that any submitted form generates a set of XML documents that are valid with respect to their corresponding XML schemas. The  application does this by:

Column
width240px

 On this page:

Table of Contents
maxLevel1

...

Lets say you would like to change the phone control validation from the ' current built-in pattern.   The built-in values are shown in Cloud customers must apply Patterns to a text control while in-house customers have two options

  1. Apply patterns to a control. 
  2. In-house customers can:
    1.  apply patterns to the control - Like other control properties, the pattern property will remain as is after an upgrade,
    2. or modify the built-in values in the types.xsd file. Be aware that if you modify the types.xsd file, you will have to make this change each time you preform a  upgrade. Applying a pattern to the control 

The built-in values are shown in the image below:

Follow these steps to change the current buit-in pattern to  ##-####-#### or ####-###-###.

...

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>
Apply Pattern to a Control for a Phone Number

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.

...