Field set title, i need 2

Field set title, i need 2

rrzavaletarrzavaleta Posts: 78Questions: 52Answers: 2

Hello , I am using the plugins "Field Sept. title "
but I can not use two of these items at a time .
This example works if

"fields": [
{ label: "NAME", name: "pinfo", type: "title" },
{"label": "First name:","name": "first_name" },
{"label": "Last name:","name": "last_name"}
]

But if I add another does not run anything

"fields": [ 
        { label: "NAME", name: "pinfo",  type: "title"  },
        {label: "First name:","name": "first_name"  },
        { label: "LAST NAME", name: "pinfo",  type: "title"  },
         {label: "Last name:",  "name": "last_name"}
    ]

Any idea what's wrong ?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 63,523Questions: 1Answers: 10,473 Site admin
    Answer ✓

    You can use multiple instances, but you can't use the same name for them. fields.name must be unique for each field.

    Allan

  • rrzavaletarrzavaleta Posts: 78Questions: 52Answers: 2

    "fields": [
    { label: "NAME", name: "name1", type: "title" },
    {label: "First name:","name": "first_name" },
    { label: "LAST NAME", name: "name2", type: "title" },
    {label: "Last name:", "name": "last_name"}
    ]

    thx

This discussion has been closed.