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:Jump to solution
Thanks @sfrigzs I used Repeater
```
Repeater::make('notes')
->deletable(false)
->addable(false)...
5 Replies
Put your fields inside a fieldset and set relationship
@sfrigzs
fieldset works only with BelongsTo, HasOne and MorphOne relationships. https://filamentphp.com/docs/3.x/panels/resources/relation-managers#layout-form-components---saving-form-fields-to-a-single-relationship. But you can try a repeter or create a custom component. https://filamentphp.com/docs/3.x/panels/resources/relation-managers#repeaters---crud-multiple-related-records-inside-the-owners-form
Sure
Solution
Thanks @sfrigzs I used Repeater