F
Filamentβ€’6mo ago
time.

TextInput default = object?

Hi, I want to set a default value in my Input. Example:
TextInput::make('')
->label('Test')
->default('Hi Discord.')
->readOnly()
TextInput::make('')
->label('Test')
->default('Hi Discord.')
->readOnly()
But the input value is [object Object]
8 Replies
LeandroFerreira
LeandroFerreiraβ€’6mo ago
TextInput::make('test')
->label('Test')
->default('Hi Discord.')
->readOnly()
TextInput::make('test')
->label('Test')
->default('Hi Discord.')
->readOnly()
time.
time.β€’6mo ago
Thank you. But now the input is empty.
LeandroFerreira
LeandroFerreiraβ€’6mo ago
are you using the panel builder or form builder?
time.
time.β€’6mo ago
I use the panel builder with getSteps
LeandroFerreira
LeandroFerreiraβ€’6mo ago
default will work on the CreatePage
time.
time.β€’6mo ago
Only create, not on EditRecord?
time.
time.β€’6mo ago
Hm.. then I'll probably have to create my own component πŸ˜„ Thanks for your help!