Determine index number of like name checkbox fields using Javascript
While one can easily enough view the index for a specific widget or form field by looking at the “Fields” panel in Acrobat, is there a way one can determine the index of several or more like name checkbox fields, i.e., cb.0#0, cb.0#1, cb.0#2, ... using Javascript? While I believe the answer is 'No', I wanted to ask anyway in the event I am overlooking something I may not be aware of. In reality, the only time I have had a need to know the index for several or more checkbox fields all with the same name assigned different export values has been to prevent a user from selecting/checking more than one checkbox by writing scripts that employ the checkbox field methods isBoxChecked(0) and checkThisBox(0) where '0' denotes the '0' based index determined by the order in which the individual widgets of the checkbox field were created. All considered, if the answer to my question cited earlier is 'No' as I suspect, I am somewhat surprised that Adobe never bothered to address this issue not unlike providing a much-needed datepicker twenty years after Adobe Acrobat first debuted back in 1993. Thank you ahead of time.
