Validating Data for Multiple Languages
The Platform enables you to validate data in multiple languages before saving it. You can follow the guidelines to create constraints of any available type.
The following example assumes that you create an IsNotNull constraint for the name attribute of the Title type, for the Spanish and English languages. In order to save a new title, fill in the name field for both English and Spanish.
Creating a Constraint
You can easily create a new validation constraint and apply it to multiple languages using the Backoffice Administration Cockpit.
Procedure
- Log in to Backoffice.
- Go to .
- Click the small arrow next to the + icon to open the options menu.
- Click the arrow next to Attribute Constraint, and choose IsNotNull constraint.
- In the window that appears, provide an identifier for your constraint in the ID field.
- Click the ... icon next to the Enclosing Type field, and search for and select the type with identifier Title.
- Click the ... icon next to the Attribute descriptor to validate field, and select name.
- Click the ... icon next to the Validation languages field, and click the check marks next to English and Spanish in the window that appears to select them.
- Optional: Click next to add additional attributes for your constraint.
- Click Done to save your constraint.
Creating an Item
After you have created your constraint, create an item.
Procedure
- Go to .
- Click the + icon to add a new item.
- Complete the Token field.
- Click Done.
Results
If you try to save your item and you haven't provided both English and Spanish names for it, you get an error telling you that these names are required. This message means that validation works and the constraint has been imposed on the title.

