Build repeater schema from action

How can I build / add / create a repeater schema when the user clicks an action?

Actions::make([
  Action::make('generate_variations')
    ->label('Generate Variations')
    ->action(function (Get $get, Set $set, $action) {
        $this->variationsSchema = $this->generateVariations();
        // add the generated code to the repeater field
    }),
])->columnSpanFull(),
 Repeater::make('variations')
  ->columnSpanFull()
  ->collapsible()
  ->schema([]


Trying to replicate WooCoomerce Generate Variations functionality. The user clicks on Generate Variations button and I need to add all variations to my Repeater
Screenshot_2025-03-02_at_6.15.56_PM.png
Was this page helpful?