---
title: "validateUserInfo Method"
canonical: https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.editor.validateuserinfo.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/).

# validateUserInfo Method

**Applies to:** Customer's Canvas On-Premises; Design Editor 6.15.0, 6.x (may differ) · **Archived documentation**
 
### Callable
 
- validateUserInfo(data:  [IUserInfo](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.editor.iuserinfo.htm.md) ) :  Promise &lt; [IValidationResult](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.editor.ivalidationresult.htm.md) &gt;

- Validates the [UserInfo](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.editor.loaduserinfo.htm.md) structure.
  
 - example
     - ```
    var editor = null;
    var data = {
        "Name": "Alex Smith",
        "Position": "Manager",
        "ID": {
            "BarcodeFormat": "EAN_8",
            "BarcodeValue": "1234567"
        }
    };
    
    // Load the web-to-print editor.
    CustomersCanvas.IframeApi.loadEditor(iframe, product, configuration)
        .then(function (e) {
            editor = e;
        });
    ...
    
    // 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);        
    })
    ```

#### Parameters

    - ##### data: [IUserInfo](https://customerscanvas.com/docs/cc6/customerscanvas.iframeapi.editor.iuserinfo.htm.md) 
  
        An object, which holds key-value pairs. The key is a layer name or an in-string placeholder name without markers and extra symbols. The value is a text or barcode date you want to load into the editor.

#### Returns Promise &lt; IValidationResult &gt;
