Select Blade Component - Searchable

Is that possible using Filament Select component with "searchable" option directly into blade ? I'm trying to create an Action with specific View modalContent trying to use Filament components but i'm not able to use "form" from action from example, because When I use $this->form, it doesn't appear where I'm inserting it; instead, it shows up at the end of my view. Therefore, I'm trying to create everything in the Blade file, but I'm facing issues with using the searchable select. That's why I would like this possibility, as it would allow me to continue directly in the Blade file
Solution:
I achieved implementing HasForms (InteractsWithForms) and creating a function to return specific form to blade. ``` -- Component public function formExample(Form $form): Form...
Jump to solution
3 Replies
leoblanski
leoblanski3mo ago
Example trying to use Action Form:
No description
No description
leoblanski
leoblanski3mo ago
No description
Solution
leoblanski
leoblanski3mo ago
I achieved implementing HasForms (InteractsWithForms) and creating a function to return specific form to blade.
-- Component
public function formExample(Form $form): Form
{
return $form
->schema([
Textarea::make('test')
->required(),
])
->statePath('testData');
}

--- Blade

{{ $this->formExample }}
-- Component
public function formExample(Form $form): Form
{
return $form
->schema([
Textarea::make('test')
->required(),
])
->statePath('testData');
}

--- Blade

{{ $this->formExample }}