Bind different model to action form

I've created action with form that I am calling from some resource edit page. Model binded to that action form is the model that belongs to the resource from which I am calling that action. What I want is to bind completely different model to that action form that have no relation to underlying model. Any ideas how to do that.

Example what I would like to do:

Filament\Forms\Components\Actions\Action::make('new_product')
     // I know there is no setModel() method on action
     ->setModel(Product::class)
     ->form([
         TextInput::make('product_name')->required(),
         Select::make('product_type_id')
            ->relationship(name: 'type', titleAttribute: 'name')
     ])
     ->action(function () {
         // When action is executed I want to create new product
     });


And that action button is called from PageResource edit page that is why I am creating Filament\Components\Actions\Action. My form in action is in no relation to a underlying Page model, and I want to be bind to Product model.
Was this page helpful?