Avatar

Level 10

Hi,

If the TextField1 is in a repeating Row1, then the reference would be more like:

Table1.Row1[0].TextField1, Table1.Row1[1].TextField1, Table1.Row1[2].TextField1, etc...

See an example here: http://assure.ly/kUP02y. Have a look at the table examples.

You would need to loop through the repeating instances and build the string. Using Radzmar's script as an example:

var aWords = []; // create an array variable

var nRows = xfa.resolveNodes("Table1.Row1[*].TextField1"); // resolve all of the repeating instances

// Loop through the rows

for (var i=0; i<nRows; i++) {

     aWords.push(nRows.item(i).rawValue);

}

aWords.sort(); // Sort the array

this.rawValue = aWords.join(",");

You will need to adjust the script for your form.

Niall