Which field?
Here's a better description of my scenario (it's not the best example, but it works). I have XML input, and the XML contains a list of cars. Each car element has several child elements, one of which is hasCruiseControl. The possible values for hasCruiseControl are yes, maybe, and no.
I need to display a table of all the cars. In one of the cells, I need to display the value of hasCruiseControl. I also need to display a footnote next to the value, and the corresponding footnote text at the bottom of the page. Here's where it gets tricky. If all cars in the XML list have hasCruiseControl=yes or hasCruiseControl=no, then I only need to show 1 footnote, and that footnote's number is (3). If all the cars in the list have hasCruiseControl=maybe or hasCruiseControl=no, then I only need to show 1 footnote, and that footnote's number is also (3), but the text at the bottom of the page for footnote (3) will be different. If some of the cars in the list have hasCruiseControl=yes and some have hasCruiseControl=maybe, then I need to show 2 footnotes, whose numbers will be (3) and (4). (hasCruiseControl=no has no footnote; it is just yes and maybe that generate footnotes.)
So I need to be able to evaluate ALL of the XML data prior to an initialize event for an individual table cell, because I need to know the cardinality of the yes's and the maybe's beforehand. I'd prefer not to have to loop through all my XML data every time for each cell.
Does this make more sense? Is there a way to run Javascript code first, prior to form object initialization? Should I attach my code to a prior object in the hierarchy that I know will be initialized before the table? (I would consider this a bit of a hack, but I think it would work.)
Thanks,
Andy