I have a field setup as repeater. The user can choose between different field-types as value for this. My options look like this:
{
"fields": [
{
"type": "collectionlink",
"name": "article",
"label": "Article",
"display": "article",
"options": {
"link": "blog",
"display": "title"
}
},
{
"type": "select",
"name": "link",
"display": "link",
"label": "Link",
"options": {
"options": "A, B, C",
"display": "link"
}
},
{
"type": "text",
"name": "freeLink",
"label": "Free Link",
"options": {
"display": "freeLink"
}
}
]
}
Now what I want is that cockpit shows me values of different fields when I reorder the elements in the repeater. For “article” it should be the “title” field of the linked collection element. For the “link” it should be the selected value and for “freeLink” it should be just the text the user entered.
I tried all sorts of combinations of the “display” and “name” property. Nested and not nested. Is this possible at all?
Thanks!