I have what I hope is an easy question that I've been beating my head on for days....
Say I have a form with multiple fields of the same name - let's call the fields recordedHours.
Adobe assigns an index to each instance of the field, so we'll have recordedHours[0], recordedHours[1]... recordedHours[30]
Now I need to set and get the values using Javascript, so something like:
for (i=0; i<=30; i++)
{
var hrs = this.recordedHours[i].rawValue;
}
This doesn't work. Neither does a full reference: form1.timeform.recordedHours[i].rawValue
or getElement: this.getElement("recordedHours",i)
or dot notation: form1.timeform["recordedHours"].i.rawValue (syntax error, as i, when converted to numeric gives an illegal object/element identifier)
I have tried every way I can possibly think of to get and set the values through Javascript and I've searched high and low on the web but can't find anything - I know I'm probably suffering from SUS (Stupid User Syndrome), but can anyone help me out here?
Cheers,
Marty.