loadUserInfo Method


  • loadUserInfo(data?: object ) : Promise < void >
  • Populates a product with user data. For details, see the Working with User Data topic.

    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;
    // Populate the product with user data.


    • Optional data: object

      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 insert into it. If you omit this parameter, then the userInfo passed to the editor during the initial loadEditor call is used.

    Returns Promise < void >