---
title: "Interface: IValidationResult | Customer's Canvas On-Premises"
canonical: "https://customerscanvas.com/docs/on-premises/design-editor/iframe-api/reference/design-editor-iframe/interfaces/Editor.Editor.IValidationResult/"
---

# Interface: IValidationResult

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

## Example

``` js
 // 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.
