Skip to main content
⚠️ Archived Version

You are viewing documentation for Design Editor version 7.2, which is no longer actively maintained. For the latest features and updates, please refer to the current version (7.3).

Interface: IValidationResult

A structure used by (Editor:class).validateUserInfo to store results of the UserInfo validation.

Example

// Validate userInfo.
const validationResults = await editor.validateUserInfo(data);
if (validationResults.error) {
// Output the error.
console.error(validationResults);
return;
}

// Populate the product with valid user data.
editor.loadUserInfo(data);

Properties

error

error: boolean

The validation status. If true, then the input contains errors.


errorMessage?

optional errorMessage?: string

The error message.

Was this page helpful?