How to reference repeated text fields separately in javascript?
So let's say I have multiple instances of a text field, three in this case, all titled "Insert Date".
I can see when I'm in the "Prepare Form" page, that the fields have number identifiers on them once there is more than one of the same name
i.e.
Insert Date#0
Insert Date#1
Insert Date#2
I'm running some javascript script to set the font size of the field in question. I loop through all fields and set an if statement for fields named like the ones above:
loop
{
getname // works as it should call this cFieldName
getfield of getname // works as it should call this oField
if (cFieldName == "Insert Date#0"){oField.textSize = 10;}
}
Unfortunately this sets the text size to 10 for all 3 fields, not just the specific one (Insert Date#0). It seems I'm not actually referencing that individual field. I absolutely need the field name to be the same. What can I do to achieve this?
