© 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
•
7 replies
Sven
Default Key-Value when creating a new record
While we can set a default value for a normal input field
, I can
't seem to find the option to do the same for a key
-value field
.
Is it possible to set a default array value on page load
?
Solution
this should be
->default([
'sizes' => 'S, M, L, XL, XXL'
])
->default([
'sizes' => 'S, M, L, XL, XXL'
])
Jump to solution
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
Was this page helpful?
Yes
No
Similar Threads
Recent Announcements
Similar Threads
Reordering Records - Add default sort value when new record is created
F
Filament / ❓┊help
2y ago
Use `relationship()` when creating a new record
F
Filament / ❓┊help
3y ago
default key value in key-value pair
F
Filament / ❓┊help
2y ago
Set Default when Creating Record from Relation
F
Filament / ❓┊help
5mo ago