Clonable groups not show only one sub-field

Support MB Builder Clonable groups not show only one sub-field

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #4740
    djgoulartdjgoulart
    Participant

    Hello! Congratulations on the project!

    I am trying to work with clonable groups but they only show 1 single field, they are not showing the others that have been attached to them.

    I noticed that this is happening also with the tabs, except that in the tabs I can not even add the fields.

    I also tried to create the field group metabox using the metabox template, but I got the same result, it showed only one field.

    I bought all the plugins, what am I doing wrong?

    #4741
    djgoulartdjgoulart
    Participant

    Sorry the title is wrong, the correct is: Clonable groups show only one sub-field

    #4742
    Anh TranAnh Tran
    Keymaster

    Hi, can you show me the code to create meta boxes?

    #4744
    djgoulartdjgoulart
    Participant

    Hello!

    I tried to register using MB Builder, but here is the code that I put in the MB Template to test otherwise.

    title: Prazos
    fields:
      - name: Group
        id: grop_name
        type: group
        fields:
          - name: Group, 
            id: group_1, 
            type: group,
            fields: 
            - {name: test, id: test, type: text}
            - {name: test1, id: test1, type: text2}
            - {name: test2, id: test2, type: text2}
    #4749
    Anh TranAnh Tran
    Keymaster

    Hi, I see you missed the param clone for the group field, so it can't be cloned.

    Here is the fixed code (I fixed the syntax also):

    title: Prazos
    fields:
      - name: Group
        id: grop_name
        type: group
        fields:
          - name: Group
            id: group_1
            type: group
            clone: true
            fields: 
              - name: test
                id: test
                type: text
              - name: test1
                id: test1
                type: text
              - name: test2
                id: test2
                type: text
    #4751
    djgoulartdjgoulart
    Participant

    Your setup worked!
    But I could not do the same using the MB Builder that is on my site.

    I ran a test, reinstalling a clean version of my site locally and this time I was able to use the clonable groups using the builder.

    So there is no problem with your component. Thank you very much for the help, and congratulations again.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Clonable groups not show only one sub-field’ is closed to new replies.