JavaScript
{dialog.object}duplicateRepeatingSectionRow Method
Syntax
{dialog.Object}.duplicateRepeatingSectionRow(repeatingSectionID [, flagFireEvents]);
Arguments
- repeatingSectionIDstring
Row in repeating section to copy.
- flagFireEventsboolean
Default = true. A true/false value. By default, when the row is duplicated, onChange events in the target fields are fired. To suppress these events, pass in false to the flagFireEvents argument.
Description
Copies the values in the current Repeating Section row to a new row.
Discussion
The duplicateRepeatingSectionRow() method copies the values from the active Repeating Section row to a new row. If a blank, unmodified row exists in the Repeating Section, the active row will be copied to the existing blank row. Otherwise, a new row will be added containing the duplicate data.
Example
{dialog.object}.duplicateRepeatingSectionRow('REPSEC_1');
See Also