Replies: 1 comment
-
I was just about to ask the same but it seems that You can get around it by using Hidden fields. E.g Tables\Actions\BulkAction::make('moreInfo')
->fillForm(fn (): array => [
'items' => [
[
'reference' => 'AA',
'name' => 'John Doe',
'address' => '123 Main St.',
],
[
'reference' => 'AB',
'name' => 'Jane Doe',
'address' => '456 Elm St.',
]
]
])
->form([
Repeater::make('items')
->itemLabel(fn (array $state): string => $state['reference'])
->schema([
Hidden::make('address'),
TextInput::make('name')
->helperText(fn (Get $get): ?string => $get('address')),
]),
]); |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Package
Form builder
Package Version
v3.2.80
How can we help you?
I can use
$get
to access the parent field values, but how can I access the full current item?E.g. I have as a object structure (all in single JSON):
In my repeater:
['field3' => ..., 'field4' => ..., ...]
.I tried something like:
Beta Was this translation helpful? Give feedback.
All reactions