© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
FilamentF
Filament•2y ago•
7 replies
Asmit

How to add morphToMany field value from the form ?

I have a file submission feature and each submission have notes which is morphic and I have to add first note during the creation of the submission
Solution
Thanks @sfrigzs I used Repeater
 Repeater::make('notes')
    ->deletable(false)
    ->addable(false)
    ->relationship('notes')
    ->schema([
        RichEditor::make('description')
            ->required()
            ->columnSpanFull(),
    ]),
 Repeater::make('notes')
    ->deletable(false)
    ->addable(false)
    ->relationship('notes')
    ->schema([
        RichEditor::make('description')
            ->required()
            ->columnSpanFull(),
    ]),
Jump to solution
Filament banner
FilamentJoin
A powerful open source UI framework for Laravel • Build and ship admin panels & apps fast with Livewire
20,307Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Set form field value from outside the form
FilamentFFilament / ❓┊help
3y ago
How to get form value?
FilamentFFilament / ❓┊help
3y ago
Value from another field
FilamentFFilament / ❓┊help
3y ago