Skip to content

Commit fbd6d2a

Browse files
committed
Add unique id warning for repeater fields.
Signed-off-by: Kev Provance <kevin.provance@gmail.com>
1 parent f91f137 commit fbd6d2a

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

docs/core-extensions/repeater.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,19 @@ The group by values allows you to store all values within the repeater id value
5252
as denoted below, and you set this to true. To access all the field values within the repeater field, you would need to follow the
5353
Example Usage - Grouped Values example denoted below. This, by default, is turned off.
5454

55-
::: danger Due to the unique way Redux stores data when setting this argument to true, `required` funcionality will fail on the first load of the
55+
::: danger
56+
Due to the unique way Redux stores data when setting this argument to true, `required` funcionality will fail on the first load of the
5657
options panel. If you intend to use `required` functionality in your repeater field, this argument is **NOT** recommended.
5758
:::
5859

5960
#### The `sortable` Argument
6061
By default, each repeater block is sortable and the values will be returned to the developer in the order of which they are saved. However,
6162
should a developer like to disable this feature, they may set this to false and sorting will be enabled to the user.
6263

64+
::: warning
65+
The field `id` argument of fields inside the repeater **MUST** be unique. They cannot share names with other Redux fields or other fields inside other repeater instances, or they will not render properly.
66+
:::
67+
6368
## Example Config
6469
```php
6570
Redux::set_section(

0 commit comments

Comments
 (0)