Back to Website
Show / Hide Table of Contents

Interface Editor.IValidationResult

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

Package: @aurigma/design-editor-iframe
Examples
 // 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

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

Declaration
error: boolean;
Property Value
Type Description
boolean

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

errorMessage

The error message.

Declaration
errorMessage?: string;
Property Value
Type Description
string

The error message.

Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2025 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback