F
Filamentβ€’16mo ago
Carlo

Append another form field?

How do you append another field before saving?
Section::make()
->schema([
TextInput::make('email')
->string()
->required()
->maxLength(255),
Select::make('domain')
->options(Domain::all()->pluck('name', 'id'))
])
->columns(2)
Section::make()
->schema([
TextInput::make('email')
->string()
->required()
->maxLength(255),
Select::make('domain')
->options(Domain::all()->pluck('name', 'id'))
])
->columns(2)
I'd like to append the selected domain to email before it gets saved but I'm not sure how to do it.
3 Replies
Patrick Boivin
Patrick Boivinβ€’16mo ago
Is this in a Panel or with a custom form?
Carlo
CarloOPβ€’16mo ago
Thanks for pointing me to the correct path πŸ˜„
Want results from more Discord servers?
Add your server