Custom Form Repeater minItems is not working.

Hi, I am building a custom invoice software with filament. I have tried to use the repeater minItems but it is not working.
No description
5 Replies
toeknee
toeknee14mo ago
Try putting required before minItems
appenjel
appenjelOP14mo ago
The items are still removing.
toeknee
toeknee14mo ago
That's normal, but you shouldn't be able to submit the form without them. If you always want to retain one row, just set an empty row with afterstate updated method, if counting of items = 0
appenjel
appenjelOP14mo ago
I got it. I use this action submission button.
No description
appenjel
appenjelOP14mo ago
By using this action submission button, the form is submitted. Should I have to use submit button instead of Action submit?

Did you find this page helpful?