---
title: "IValidationResult Interface"
canonical: https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.editor.ivalidationresult.htm
archived: true
applies_to:
  - product: "Customer's Canvas On-Premises"
  - product: "Design Editor"
    versions: ["6.15.0", "6.x (may differ)"]
---

**You’re viewing outdated documentation.** [View the latest Customer’s Canvas On-Premises documentation](https://customerscanvas.com/docs/on-premises/).

# IValidationResult Interface

**Applies to:** Customer's Canvas On-Premises; Design Editor 6.15.0, 6.x (may differ) · **Archived documentation**
 
A structure used by [Editor.validateUserInfo](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.editor.validateuserinfo.htm.md) to store results of the UserInfo validation.
  
 - example
     - ```
// Validate userInfo.
editor.validateUserInfo(data).then(function (r) {
    if (r.error) {
        // Output the error.
        console.error(r);
        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.
 
### Optional errorMessage
 
errorMessage: string

The error message.
