Versions Compared

Key

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

Table of Contents

...

  1. Apply patterns to a control - Like other control properties, the pattern property will not need to be redone when you upgrade Image Removedupgrade frevvo.
  2. 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 perform a  upgrade a frevvo upgrade or apply a  patcha frevvo patch.
Apply a Pattern to a Control for a Phone Number

If you are using  Onlineusing frevvo Online, you will not have access to types.xsd. Both cloud and in-house customers, 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.

Tip

The Pattern property will not need to be redone when you upgrade upgrade frevvo.

A pattern such as ##-####-#### or ####-###-### is not a simple restriction. To impose validation against this pattern you must start with a Text control rather than a Phone control

...

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

  1. Apply patterns to a control - Like other control properties, the pattern property will not need to be redone when you upgrade upgrade frevvo.
  2. 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 perform a  upgrade a frevvo upgrade or apply a  patcha frevvo patch.
Apply a Pattern to a Control for a Phone Number

If you are using  Onlineusing frevvo Online, you will not have access to types.xsd. Both cloud and in-house customers, 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.

Tip

The Pattern property will not need to be redone when you upgrade upgrade frevvo.

A pattern such as ##-####-#### or ####-###-### is not a simple restriction. To impose validation against this pattern you must start with a Text control rather than a Phone control

...

Modify the types.xsd file

frevvo OEM partners may choose this method when customizing customizing frevvo.  The built-in values are shown in the image below:

...

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

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

  1. Stop  if Stop frevvo if it is running. 
  2. Open <frevvo home>/tomcat/webapps/frevvo file and copy the WEB-INF\data\users\types.xsd file to a temporary location of your choice.
  3. Edit c:\tmp\frevvo-war\WEB-INF\data\users\types.xsd,
  4. Change the element phoneType as shown in the code block below: Save the changes to the types.xsd file. 
  5. Replace the original file with the updated version.

  6. Restart your  form your frevvo form server. Now all your phone controls will validate against this pattern.

...