MartinKnops
afterStateHydrated not working when using multiple Fieldset
i'm trying to use afterStateHydrated on FieldA in Fieldset1 to update FieldB in Fieldset2, this does not work. When doing the same when FieldA and FieldB are in the same Fieldset1, then it works fine.
26 replies
AttachAction::make()
I have a MySQL table like this
id - source_model - related_module - related_model
in my Model i have a BelongsToMany like this
public function candidates(): BelongsToMany
{
return $this->BelongsToMany(Candidates::class, 'proposal_relations', 'source_model', 'related_model');
}
Tables\Actions\AttachAction::make()
->form(fn (AttachAction $action): array => [
$action->getRecordSelect(),
Forms\Components\TextInput::make('related_module')->required(),
])->preloadRecordSelect() now i want the value from the textinput 'related_module' stored in the tabele row 'related_module' please help......
->form(fn (AttachAction $action): array => [
$action->getRecordSelect(),
Forms\Components\TextInput::make('related_module')->required(),
])->preloadRecordSelect() now i want the value from the textinput 'related_module' stored in the tabele row 'related_module' please help......
4 replies