- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi James,
I'm guessing this will be a static array, that is there will be a fixed number of entries with fixed values.
Using a form variable you could set a value to an array literal and then use the eval function, so if the form variable ScreenNames had a value like ['s1','s2','s3'] then this would give you an array
var screenNames = eval(ScreenNames.value);
You could also put the array in a script object, but some earlier version of Reader used to drop script object variables (version 8.0 I think)
You could have multiple form variables with the same name (which you would have to do in the XML Source view) then you could use code like;
for (var i = 0; i < ScreenName.all.length; i++)
{
console.println(ScreenName.all.item(i).value);
}
You can also create a customs dataset.
I'm sure there are others, but I not sure what the best one would be, here's a sample form I used playing around with the options I new of, https://workspaces.acrobat.com/?d=G2aL1Tlmwo1ejDvbcGLmgA
Bruce
Views
Replies
Total Likes