From 81ae7bc5e446a165e2ceb1ae8c321ae53bdac18b Mon Sep 17 00:00:00 2001 From: renepupil <117264860+renepupil@users.noreply.github.com> Date: Tue, 29 Nov 2022 10:20:54 +0100 Subject: [PATCH] Clarify how `CollectionType` entries are indexed Clarifying the indexing for `CollectionType`entries prevents further confusion about how to entries can be identified in the front end as well as when viewing the request data. --- reference/forms/types/collection.rst | 2 ++ 1 file changed, 2 insertions(+) diff --git a/reference/forms/types/collection.rst b/reference/forms/types/collection.rst index c5572f93c6b..ab537de89ab 100644 --- a/reference/forms/types/collection.rst +++ b/reference/forms/types/collection.rst @@ -11,6 +11,8 @@ forms, which is useful when creating forms that expose one-to-many relationships (e.g. a product from where you can manage many related product photos). +When rendered, existing collection entries are indexed by the keys of the array that is passed as the collection type field data. + +---------------------------+--------------------------------------------------------------------------+ | Rendered as | depends on the `entry_type`_ option | +---------------------------+--------------------------------------------------------------------------+