It would be nice if you set a limit on the number of times a field or set of fields can be repeated. Something like '#multiadd_limit' => 10 would allow you to hit the "Add" button 9 times, displaying 10 sets on the page, and then after that you would not be able to add any more.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 1369964-1-multiadd-mulitadd_limit-eojthebrave.patch | 2.35 KB | eojthebrave |
Comments
Comment #1
sidharth_k commentedYes. This is a useful feature. I will implement this.
Comment #2
eojthebraveAttached patch adds a #multiadd_limit property which defaults to 0 or unlimited. When set the user will only able to add N-1 sets of new fields to the page. Meaning they can never submit more then N copies of any given #multiadd group.
Comment #3
sidharth_k commentedCommitted to branch 6.x-1.x-dev
Thanks!
Comment #4
sidharth_k commented