Acessing repeater data in partial

Hello,

i have the yaml as

        fields_object[geometry]:
            label: Zeichen
            prompt: 'Neues Zeichen hinzufügen'
            style: default
            span: full
            type: repeater
            tab: Zeichnung
            form:
                fields:
                    title:
                        label: Titel
                        span: full
                        type: richeditor
                        toolbarButtons: inline-bold|clearFormatting|html
                        size: small
                    size_inputs:
                        label: Sizes
                        span: full
                        type: partial
                        path: $/xyz/testmodel/controllers/bikemodel/size_inputs.php
                        tab: Zeichnung
                        var: indexValue

in the partial size_inputs i want to get the index of the repeater field and its data. but it seems impossible. any idea?

i want to do so because i want to add extra details depending on the index and title

Hi @ibrarartisan ,

From your partial, $formField->getName() will return a value like "Review[test][0][size_inputs]", and adding another repeater item will give "Review[test][1][size_inputs]".

You can extract the index from this.

Thanks.

Well may be i ask directly here.

I have the following

Bikemodel → havemany → sizes.

How can i add sizes as fields to this repeater?