How to modify the form opened from a select option?
E.g I want to adjust the form columns to two, by default it's one. I don't want to use
Grid
components everywhere.
Is there a way of modifying the form
from within editOptionAction
?
Solution:Jump to solution
I found what I needed - you use Closure in
editOptionForm
to access the form object.
```php
->editOptionForm(fn (Forms\Form $form) => $form
->schema(CustomResource::getFormSchema())...4 Replies
How do you want to achieve two columns without a Grid?
In the same way a standard form works
Sorry, I don't get what you want to achieve. The form columns should change after the action?
Solution
I found what I needed - you use Closure in
editOptionForm
to access the form object.