Designer Studio
PDF Block Template

Validation

3min

With these features, you can bind rules to a certain block. Some of the validation types are Regular Expression, Date Specific Range, Allowed Characters in the Text block and a few default validation formats like email, mobile. You can also define your own validation. More details in help.

ο»ΏHow to setup Validation for a block?ο»Ώ

  • Select any product template and click on the Action button and select Manage Blocks from the drop-down.
  • From the Manage Blocks tab, click onΒ the β€˜Manage Properties’ link of any block.
  • In the Manage Properties screen, click on the β€˜Add’ button from the top-right corner to add a property.
  • In the property drop-down, select β€˜Validation’.
  • Set the block requirement.
  • Set the block format i.e. validation rules. There are predefined rules created by OnPrintShop.
  • Enter validation message to display at the front side.
Document image
ο»Ώ

ο»ΏWhat are data validation formats?ο»Ώ

There are seven predefined validation rules created:

  • Phone Number: allows only 10 numeric values.
  • Email: must contain a dot and β€˜@’ symbol.
  • Username: (3 to 16 characters, numbers – and β€˜_’ allowed.
  • Website: must contain www.
  • Only Numeric: Only Numeric values allowed.
  • Only Alphabet: Only Alphabets allowed.
  • Alphanumeric: both alphabets and numbers allowed.
  • Other: create your custom validation. Examples are shown in the below picture:
Document image
ο»Ώ

ο»Ώ