Persist and save information from modal additional inputs

Hi, i'm using the admin panel and the table repeater and drop-in actions plugins by awcodes.

I am a newbie to livewire, I'm working in my 'FormResource\Pages\EditForm', I need the information added in the form of DropInAction persist and when the user has finished adding fields and their additional options, press save to save all changes to all fields in the database.

Also, how can i fill this modal inputs with the corresponding information?

TableRepeater::make('options')
    ->relationship('formFields')
    ->label('')
    ->disableLabel()
    ->cloneable()
    ->schema([

        TextInput::make('name')
            ->required(),
        //... more fields

        //Button in tablerepeater showing additional inputs in modal to be added to each formField. Saving this additional data in database will be when user click save button in parent.
        DropInAction::make('additional-options-field')
            ->execute(function (Closure $get, Closure $set) {
                return Action::make('fillOptions')
                ->mountUsing(
                    //How can i fill the data in modal?
                )
                ->action(function (array $data, $component, $livewire) use($get, $set): void {
                    //...
                }
                ->form( function() use($get) {
                    return [
                        TextInput::make('options.minLength'),
                        TextInput::make('options.maxLength'),
                        TextInput::make('options.minValue'),
                        TextInput::make('options.maxValue'),
                    ];
                })
            }),

    ]),
php

Is this possible something possible to do? maybe there is a better approach to do this? I hope i explain myself clearly, Thanks in advance.
Was this page helpful?