You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* @param string $deletebuttonname if specified, treats the no-submit button with this name as a "delete element" button in each of the elements.
39
40
* @return int no of repeats of element in this page
40
41
*/
41
42
```
@@ -56,13 +57,14 @@ While the elements are zero-indexed, the `{no}` label is one-indexed.
56
57
- The label used for the 'Add more' button can be set using the `$addstring` parameter. A `{no}` placeholder can be used in the string to indicate how many repeats will be added.
57
58
- The number of element repeats currently shown is stored in a hidden element, whose name can be specified using the `$repeathiddenname` parameter.
58
59
59
-
The following example shows how `repeat_elements()` can be used within a form definition:
60
+
The following example shows how `repeat_elements()` can be used within a form definition with a delete button for each repeated field :
0 commit comments