© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Populate repeater using a select field outside of repeater rather than using the repeater add button - Tuto's Laravel Corner
TLC
Tuto's Laravel Corner
•
2y ago
Ahmed Ogua
Populate repeater using a select field outside of repeater rather than using the repeater add button
This is my code
.
Hoe do i use this select filed to poupulate my repeater
.
Forms
\Components
\
S
e
l
e
c
t
:
:make
(
'scan
_code
'
)
-
>label
(
'
'
)
-
>getSearchResultsUsing
(fn
(string
$search
)
: array
=
>
(new Saleservice
(
)
)
-
>getproductdetails
(
$search
)
)
-
>preload
(
)
-
>placeholder
(
"Scan
/ Search product by name
/ code
"
)
-
>columnSpanFull
(
)
-
>searchable
(
)
-
>dehydrated
(false
)
-
>required
(
)
,
Forms
\Components
\
R
e
p
e
a
t
e
r
:
:make
(
'saleitem
'
)
-
>label
(
'
'
)
-
>relationship
(
)
-
>columnSpan
(
"full
"
)
-
>schema
(
[
Forms
\Components
\
T
e
x
t
I
n
p
u
t
:
:make
(
'product
_id
'
)
-
>label
(
'Product
'
)
-
>required
(
)
,
Forms
\Components
\
T
e
x
t
I
n
p
u
t
:
:make
(
'unit
_price
'
)
-
>type
(
"number
"
)
-
>disabled
(
)
-
>dehydrated
(
)
-
>label
(
'Price
'
)
-
>required
(
)
,
Forms
\Components
\
T
e
x
t
I
n
p
u
t
:
:make
(
'qty
'
)
-
>numeric
(
)
-
>default
(1
)
-
>live
(
)
-
>dehydrated
(
)
-
>afterStateUpdated
(function
(Forms
\Get
$get
,Forms
\Set
$set
,
$state
)
{
$tot
=
$state
*
$get
(
'unit
_price
'
)
;
$set
(
"total
"
,
$tot
)
;
}
)
-
>required
(
)
,
]
)
-
>columns
(4
)
-
>addActionLabel
(
'Add Item
'
)
-
>cloneable
(
)
-
>mutateRelationshipDataBeforeCreateUsing
(function
(array
$data
)
: array
{
$data
[
'external
_id
'
]
= auth
(
)
-
>user
(
)
-
>id
;
return
$data
;
}
)
,
Recent Announcements
No replies yet
Join the Discord to continue the conversation
TLC
Tuto's Laravel Corner
295
Members
Join
Similar Threads
how to set a value of an input field using values in a repeater
TLC
Tuto's Laravel Corner / 💡filament
3y ago
Repeater inside a Repeater.
TLC
Tuto's Laravel Corner / 💡filament
3y ago
Filamentphp Repeater
TLC
Tuto's Laravel Corner / 💡filament
13mo ago
Using Repeater to save as JSON and display in Table
TLC
Tuto's Laravel Corner / 💡filament
3y ago