Access $arguments from the action schema #17869
Answered
by
leandrocfe
joaovdiasb
asked this question in
Help
Replies: 1 comment 2 replies
-
public function viewFormAnswerAction(): Action
{
return Action::make('viewFormAnswer')
->action(fn (array $arguments) => $this
->replaceMountedAction('formAnswerSchema', arguments: $arguments));
}
public function formAnswerSchemaAction(): Action
{
return Action::make('formAnswerSchema')
->schema(function (array $arguments): array {
// You can access the arguments here
return [
// ...
];
});
} |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
joaovdiasb
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Package
Panel builder
Package Version
v4.0
How can we help you?
Good afternoon everyone, I migrated from filament v3 to v4, before I was able to access the arguments directly into the action schema to open a dynamic form, now it is no longer possible, arguments is an empty array
like this (but in v3 with ->form())

blade:
{{ ($this->viewFormAnswer)(['form_answer_id' => $processFlow->form_answer_id]) }}
Beta Was this translation helpful? Give feedback.
All reactions