Forum Replies Created

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter federica16796

    (@federica16796)

    The error is if I create two clone fields (in this example field builder)
    I solved by commenting: var field = fc.getField(fc.data.key);
    and adding field=fc;
    but I do not know if it’s the correct solution

    The error in the console when I close the modal is: Uncaught TypeError: Cannot read property ‘replace’ of undefined
    or: Uncaught TypeError: Cannot read property ‘parents’ of undefined

    Thread Starter federica16796

    (@federica16796)

    [
    {
    “key”: “group_5b6ae7cf073cc”,
    “title”: “Template ABOUT (who we are)”,
    “fields”: [
    {
    “key”: “field_5b6ae7f3adf32”,
    “label”: “Header”,
    “name”: “”,
    “type”: “tab”,
    “instructions”: “”,
    “required”: 0,
    “conditional_logic”: 0,
    “wrapper”: {
    “width”: “”,
    “class”: “”,
    “id”: “”
    },
    “placement”: “top”,
    “endpoint”: 0
    },
    {
    “key”: “field_5b6ae7f9adf33”,
    “label”: “Header”,
    “name”: “header”,
    “type”: “clone”,
    “instructions”: “”,
    “required”: 0,
    “conditional_logic”: 0,
    “wrapper”: {
    “width”: “”,
    “class”: “”,
    “id”: “”
    },
    “clone”: [
    “group_5b6306d9b496b”
    ],
    “display”: “seamless”,
    “layout”: “block”,
    “prefix_label”: 0,
    “prefix_name”: 0
    },
    {
    “key”: “field_5b72d9684d6b9”,
    “label”: “Builder 1”,
    “name”: “”,
    “type”: “tab”,
    “instructions”: “”,
    “required”: 0,
    “conditional_logic”: 0,
    “wrapper”: {
    “width”: “”,
    “class”: “”,
    “id”: “”
    },
    “placement”: “top”,
    “endpoint”: 0
    },
    {
    “key”: “field_5b72db214d6ba”,
    “label”: “Builder”,
    “name”: “about_builder1”,
    “type”: “clone”,
    “instructions”: “”,
    “required”: 0,
    “conditional_logic”: 0,
    “wrapper”: {
    “width”: “”,
    “class”: “”,
    “id”: “”
    },
    “clone”: [
    “group_5b6bfafce11c5”
    ],
    “display”: “seamless”,
    “layout”: “block”,
    “prefix_label”: 0,
    “prefix_name”: 1
    },
    {
    “key”: “field_5b6ae823140c3”,
    “label”: “History”,
    “name”: “”,
    “type”: “tab”,
    “instructions”: “”,
    “required”: 0,
    “conditional_logic”: 0,
    “wrapper”: {
    “width”: “”,
    “class”: “”,
    “id”: “”
    },
    “placement”: “top”,
    “endpoint”: 0
    },
    {
    “key”: “field_5b6ae82f140c4”,
    “label”: “History”,
    “name”: “history”,
    “type”: “repeater”,
    “instructions”: “”,
    “required”: 1,
    “conditional_logic”: 0,
    “wrapper”: {
    “width”: “”,
    “class”: “”,
    “id”: “”
    },
    “collapsed”: “”,
    “min”: 0,
    “max”: 0,
    “layout”: “row”,
    “button_label”: “Aggiungi elemento”,
    “sub_fields”: [
    {
    “key”: “field_5b6ae85c140c7”,
    “label”: “Anno”,
    “name”: “anno”,
    “type”: “text”,
    “instructions”: “”,
    “required”: 1,
    “conditional_logic”: 0,
    “wrapper”: {
    “width”: “”,
    “class”: “”,
    “id”: “”
    },
    “default_value”: “”,
    “placeholder”: “”,
    “prepend”: “”,
    “append”: “”,
    “maxlength”: “”
    },
    {
    “key”: “field_5b6ae83c140c5”,
    “label”: “Immagine”,
    “name”: “immagine”,
    “type”: “image”,
    “instructions”: “”,
    “required”: 1,
    “conditional_logic”: 0,
    “wrapper”: {
    “width”: “”,
    “class”: “”,
    “id”: “”
    },
    “return_format”: “id”,
    “preview_size”: “thumbnail”,
    “library”: “all”,
    “min_width”: “”,
    “min_height”: “”,
    “min_size”: “”,
    “max_width”: “”,
    “max_height”: “”,
    “max_size”: “”,
    “mime_types”: “”
    },
    {
    “key”: “field_5b6ae848140c6”,
    “label”: “Descrizione”,
    “name”: “descrizione”,
    “type”: “wysiwyg”,
    “instructions”: “”,
    “required”: 1,
    “conditional_logic”: 0,
    “wrapper”: {
    “width”: “”,
    “class”: “”,
    “id”: “”
    },
    “default_value”: “”,
    “tabs”: “all”,
    “toolbar”: “full”,
    “media_upload”: 0,
    “delay”: 0
    }
    ]
    },
    {
    “key”: “field_5b72e341ae869”,
    “label”: “Leadership”,
    “name”: “”,
    “type”: “tab”,
    “instructions”: “”,
    “required”: 0,
    “conditional_logic”: 0,
    “wrapper”: {
    “width”: “”,
    “class”: “”,
    “id”: “”
    },
    “placement”: “top”,
    “endpoint”: 0
    },
    {
    “key”: “field_5b72e354ae86a”,
    “label”: “Sottotitolo”,
    “name”: “sottotitolo_leadership”,
    “type”: “text”,
    “instructions”: “”,
    “required”: 0,
    “conditional_logic”: 0,
    “wrapper”: {
    “width”: “”,
    “class”: “”,
    “id”: “”
    },
    “default_value”: “”,
    “placeholder”: “”,
    “prepend”: “”,
    “append”: “”,
    “maxlength”: “”
    },
    {
    “key”: “field_5b72e376ae86b”,
    “label”: “Leadership”,
    “name”: “leadership”,
    “type”: “repeater”,
    “instructions”: “”,
    “required”: 1,
    “conditional_logic”: 0,
    “wrapper”: {
    “width”: “”,
    “class”: “”,
    “id”: “”
    },
    “collapsed”: “”,
    “min”: 0,
    “max”: 0,
    “layout”: “table”,
    “button_label”: “”,
    “sub_fields”: [
    {
    “key”: “field_5b72e474ae86c”,
    “label”: “Immagine”,
    “name”: “immagine”,
    “type”: “image”,
    “instructions”: “Dimensioni minime: 960px X 960px”,
    “required”: 1,
    “conditional_logic”: 0,
    “wrapper”: {
    “width”: “”,
    “class”: “”,
    “id”: “”
    },
    “return_format”: “id”,
    “preview_size”: “thumbnail”,
    “library”: “all”,
    “min_width”: “960px”,
    “min_height”: “960px”,
    “min_size”: “”,
    “max_width”: “”,
    “max_height”: “”,
    “max_size”: “”,
    “mime_types”: “”
    },
    {
    “key”: “field_5b72e51aae86d”,
    “label”: “Testo”,
    “name”: “testo”,
    “type”: “wysiwyg”,
    “instructions”: “”,
    “required”: 0,
    “conditional_logic”: 0,
    “wrapper”: {
    “width”: “”,
    “class”: “”,
    “id”: “”
    },
    “default_value”: “”,
    “tabs”: “all”,
    “toolbar”: “full”,
    “media_upload”: 0,
    “delay”: 0
    }
    ]
    },
    {
    “key”: “field_5b757116101f3”,
    “label”: “Builder 2”,
    “name”: “”,
    “type”: “tab”,
    “instructions”: “”,
    “required”: 0,
    “conditional_logic”: 0,
    “wrapper”: {
    “width”: “”,
    “class”: “”,
    “id”: “”
    },
    “placement”: “top”,
    “endpoint”: 0
    },
    {
    “key”: “field_5b75724ff1bfc”,
    “label”: “Builder”,
    “name”: “about_builder2”,
    “type”: “clone”,
    “instructions”: “”,
    “required”: 0,
    “conditional_logic”: 0,
    “wrapper”: {
    “width”: “”,
    “class”: “”,
    “id”: “”
    },
    “clone”: [
    “group_5b6bfafce11c5”
    ],
    “display”: “seamless”,
    “layout”: “block”,
    “prefix_label”: 0,
    “prefix_name”: 1
    }
    ],
    “location”: [
    [
    {
    “param”: “page_template”,
    “operator”: “==”,
    “value”: “page-about.php”
    }
    ]
    ],
    “menu_order”: 0,
    “position”: “normal”,
    “style”: “seamless”,
    “label_placement”: “top”,
    “instruction_placement”: “label”,
    “hide_on_screen”: [
    “the_content”,
    “excerpt”,
    “discussion”,
    “comments”,
    “revisions”,
    “slug”,
    “author”,
    “format”,
    “page_attributes”,
    “featured_image”,
    “categories”,
    “tags”,
    “send-trackbacks”
    ],
    “active”: 1,
    “description”: “”
    }
    ]

Viewing 2 replies - 1 through 2 (of 2 total)