iamnotnaenae
iamnotnaenae
FFilament
Created by iamnotnaenae on 12/12/2024 in #❓┊help
is it possible to get value from parent form with form action modal?
Refer to https://filamentphp.com/docs/3.x/forms/fields/builder#using-get-to-access-parent-field-values I try with
$form // *main form
->schema
TextInput::make('first_form_value')
Forms\Components\Actions([
Forms\Components\Actions\Action::make() // *second form
->form([
Forms\Components\Actions([
Forms\Components\Actions\Action::make() // *third form
->form([
TextInput::make('third_form_value')
])
->action([ fn(Get $get,Set $set)=>self::setValue($get,$set) ]) // *set main form value
])
])
->action([
])
])
$form // *main form
->schema
TextInput::make('first_form_value')
Forms\Components\Actions([
Forms\Components\Actions\Action::make() // *second form
->form([
Forms\Components\Actions([
Forms\Components\Actions\Action::make() // *third form
->form([
TextInput::make('third_form_value')
])
->action([ fn(Get $get,Set $set)=>self::setValue($get,$set) ]) // *set main form value
])
])
->action([
])
])
on action that I said set main form value I calling Get,Set and push trough self::function on self::function I try to get value from third form and set value to first form with
$get('third_form_value')
$set('../../../first_form_value')
$get('third_form_value')
$set('../../../first_form_value')
but the result is when $get('third_form_value') it's show null then I try $get() it's show value from second form I try $get('../') it's show value of second form and third form and either I try ../../ ../../../ or else it's always show null how can I access value correctly on main , second and third form?
2 replies
FFilament
Created by iamnotnaenae on 6/25/2024 in #❓┊help
Table took 1.9second to load while query took only 80ms
No description
4 replies
FFilament
Created by iamnotnaenae on 6/13/2024 in #❓┊help
Table seems not display correctly (like missing css)
No description
3 replies
FFilament
Created by iamnotnaenae on 4/2/2024 in #❓┊help
Long time loading after click Action Modal
No description
4 replies
FFilament
Created by iamnotnaenae on 10/9/2023 in #❓┊help
How to filter select option from another select value
No description
3 replies