Hey! thank you for your answer!
I’m trying to create an item in a webflow collection, by an API call i get the structure of the collection (order and type of fields are changing for every collection).
Can I do that with repeating items, and display the right field type?
API Call collection details
{
"id": "#",
"displayName": "Solutions",
"singularName": "Solution",
"slug": "solutions",
"createdOn": "2023-10-17T22:49:32.287Z",
"lastUpdated": "2023-11-14T23:22:08.062Z",
"fields": [
{
"id": "#",
"isEditable": true,
"isRequired": false,
"type": "Image",
"slug": "image-hero",
"displayName": "hero-image/open-graph-image",
"helpText": null,
"validations": null
},
{
"id": "#",
"isEditable": true,
"isRequired": false,
"type": "PlainText",
"slug": "hero-alt-text-image",
"displayName": "hero-alt-text-image",
"helpText": null,
"validations": {
"singleLine": true
}
},
{
"id": "#",
"isEditable": true,
"isRequired": false,
"type": "PlainText",
"slug": "subheading",
"displayName": "subheading",
"helpText": null,
"validations": {
"singleLine": true
}
},
{
"id": "01975f6eb3eb8ea4b1dc0e2a886c7b0b",
"isEditable": true,
"isRequired": false,
"type": "PlainText",
"slug": "main-heading",
"displayName": "h1-heading",
"helpText": null,
"validations": {
"singleLine": true
}
},
{
"id": "#",
"isEditable": true,
"isRequired": false,
"type": "PlainText",
"slug": "description",
"displayName": "description-text",
"helpText": null,
"validations": {
"singleLine": false
}
},
{
"id": "#",
"isEditable": true,
"isRequired": false,
"type": "MultiReference",
"slug": "logo-svg-code",
"displayName": "logo-svg",
"helpText": null,
"validations": {
"collectionId": "#ref"
}
},
{
"id": "#",
"isEditable": true,
"isRequired": false,
"type": "PlainText",
"slug": "1st-h2-heading",
"displayName": "h2-heading-1",
"helpText": null,
"validations": {
"singleLine": true
}
},
{
"id": "#",
"isEditable": true,
"isRequired": false,
"type": "PlainText",
"slug": "1st-text",
"displayName": "text-1",
"helpText": null,
"validations": {
"singleLine": true
}
},
{
"id": "#",
"isEditable": true,
"isRequired": false,
"type": "PlainText",
"slug": "1st-link-text",
"displayName": "link-text-1",
"helpText": null,
"validations": {
"singleLine": true
}
},
{
"id": "#",
"isEditable": true,
"isRequired": false,
"type": "Image",
"slug": "1st-photo",
"displayName": "image-1",
"helpText": null,
"validations": null
},
{
"id": "#",
"isEditable": true,
"isRequired": false,
"type": "PlainText",
"slug": "alt-text-image-1",
"displayName": "alt-text-image-1",
"helpText": null,
"validations": {
"singleLine": true
}
},
{
"id": "#",
"isEditable": true,
"isRequired": false,
"type": "PlainText",
"slug": "2nd-h2-heading",
"displayName": "h2-heading-2",
"helpText": null,
"validations": {
"singleLine": true
}
},
{
"id": "#",
"isEditable": true,
"isRequired": false,
"type": "PlainText",
"slug": "2nd-text",
"displayName": "text-2",
"helpText": null,
"validations": {
"singleLine": true
}
},
{
"id": "#",
"isEditable": true,
"isRequired": false,
"type": "PlainText",
"slug": "2nd-link-text",
"displayName": "link-text-2",
"helpText": null,
"validations": {
"singleLine": true
}
},
{
"id": "#",
"isEditable": true,
"isRequired": false,
"type": "Image",
"slug": "2nd-photo",
"displayName": "image-2",
"helpText": null,
"validations": null
},
{
"id": "#",
"isEditable": true,
"isRequired": false,
"type": "PlainText",
"slug": "alt-text-image-2",
"displayName": "alt-text-image-2",
"helpText": null,
"validations": {
"singleLine": true
}
},
{
"id": "#",
"isEditable": true,
"isRequired": false,
"type": "PlainText",
"slug": "3rd-h2-heading",
"displayName": "h2-heading-3",
"helpText": null,
"validations": {
"singleLine": true
}
},
{
"id": "#",
"isEditable": true,
"isRequired": false,
"type": "PlainText",
"slug": "3rd-text",
"displayName": "text-3",
"helpText": null,
"validations": {
"singleLine": true
}
},
{
"id": "#",
"isEditable": true,
"isRequired": false,
"type": "PlainText",
"slug": "3rd-link-text",
"displayName": "link-text-3",
"helpText": null,
"validations": {
"singleLine": true
}
},
{
"id": "#",
"isEditable": true,
"isRequired": false,
"type": "Image",
"slug": "3rd-photo",
"displayName": "image-3",
"helpText": null,
"validations": null
},
{
"id": "#",
"isEditable": true,
"isRequired": false,
"type": "PlainText",
"slug": "alt-text-image-3",
"displayName": "alt-text-image-3",
"helpText": null,
"validations": {
"singleLine": true
}
},
{
"id": "#",
"isEditable": true,
"isRequired": false,
"type": "PlainText",
"slug": "h2-heading-services",
"displayName": "h2-heading-services",
"helpText": null,
"validations": {
"singleLine": true
}
},
{
"id": "#",
"isEditable": true,
"isRequired": false,
"type": "MultiReference",
"slug": "services",
"displayName": "services",
"helpText": null,
"validations": {
"collectionId": "#ref"
}
},
{
"id": "#",
"isEditable": true,
"isRequired": false,
"type": "PlainText",
"slug": "cta-text",
"displayName": "cta-text",
"helpText": null,
"validations": {
"singleLine": true
}
},
{
"id": "#",
"isEditable": true,
"isRequired": false,
"type": "MultiReference",
"slug": "reviews",
"displayName": "reviews",
"helpText": null,
"validations": {
"collectionId": "#ref"
}
},
{
"id": "#",
"isEditable": true,
"isRequired": true,
"type": "PlainText",
"slug": "name",
"displayName": "name",
"helpText": null,
"validations": {
"maxLength": 256
}
},
{
"id": "#",
"isEditable": true,
"isRequired": true,
"type": "PlainText",
"slug": "slug",
"displayName": "slug",
"helpText": null,
"validations": {
"maxLength": 256,
"pattern": {},
"messages": {
"pattern": "Must be alphanumerical and not contain any spaces or special characters",
"maxLength": "Must be less than 256 characters"
}
}
}
]
}