Closed
Description
I noticed an issue with the above cookbook entry. It determines the index by counting the elements. However, this will cause issues when you are adding/deleting tags.
Eg, say you start with 3 entities in the collection. The fields would be outputted as
- tag[0][field]
- tag[1][field]
- tag[2][field]
Now, I delete the tag "1" with javascript. Result is:
- tag[0][field]
- tag[2][field]
Now, I add a new tag using js. Result will be:
- tag[0][field]
- tag[2][field]
- tag[2][field]
You will notice there are now 2 rows with the same index. How do people get around this. Should we be generating a random index instead of a length based index?
Metadata
Metadata
Assignees
Labels
No labels