© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
F
Filament
•
3y ago
•
10 replies
Vp
How to auto fill multiple select in Action
I have added new button and it contains multiple select
, How can I make the select field auto display the name in EDIT
Tables
\Actions
\
A
c
t
i
o
n
:
:make
(
'link
-account
'
)
-
>mountUsing
(
function
(Forms
\ComponentContainer
$form
, Customer
$record
)
{
$childCustomer
=
C
u
s
t
o
m
e
r
:
:where
(
'approver
'
,
$record
-
>id
)
-
>pluck
(
'id
'
)
;
$form
-
>fill
(
[
'approver
_id
'
=
>
$record
-
>id
,
'name
'
=
>
$record
-
>name
.
'
(
'
.
$record
-
>idd
.
'
'
.
$record
-
>phone
_number
.
'
)
'
,
'child
'
=
>
$childCustomer
,
]
)
;
}
)
-
>form
(
[
Forms
\Components
\
H
i
d
d
e
n
:
:make
(
'approver
_id
'
)
,
Forms
\Components
\
T
e
x
t
I
n
p
u
t
:
:make
(
'name
'
)
-
>label
(
(
'Approver
'
)
)
-
>disabled
(
)
,
Forms
\Components
\
S
e
l
e
c
t
:
:make
(
'child
'
)
-
>label
(
(
'Child
'
)
)
-
>multiple
(
)
-
>options
(
C
u
s
t
o
m
e
r
:
:query
(
)
-
>active
(
)
-
>pluck
(
'name
'
,
'id
'
)
)
-
>searchable
(
)
-
>required
(
)
,
]
)
-
>action
(function
(array
$data
)
: void
{
dd
(
$data
)
;
}
)
,
If it
's empty then it working fine
, but for edit the problem come like it diplay the ID in multi select field
, not name
.
.
. and in
dd($data)
dd($data)
action it comes the name
, not ID
Sorry for bad english
Filament
Join
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
Recent Announcements
Similar Threads
Select multiple - fill
F
Filament / ❓┊help
8mo ago
auto fill when i select
F
Filament / ❓┊help
16mo ago
how to fill uuid import action bulk
F
Filament / ❓┊help
2y ago
Select::createOptionForm fill?
F
Filament / ❓┊help
16mo ago