How can I insert a javascript variable into RepeatingGroup item#

Hi there,
I’m trying to iterate through a RepeatingGroup in a Javascript For loop, but I can’t find a way to insert the variable into the RepeatingGroup’s :item#

The code below works of course as I’ve hard coded the number “1” into it, but I need to insert the variable “p” in there so I can access values from each element of the RepeatingGroup.

for (var p=0 ; p< numPulses ; p++) {
var pulse = RepeatingGroup Pulse Point - Performance’s List of Pulse Point - Performances:item #1’s Description:formatted as JSON-safe;

Is there a way (or workaround) to be able to do this in Javascript?
Many thanks for your help.

This topic was automatically closed after 70 days. New replies are no longer allowed.