I am using LiveCycle Designer ES 8.2.1 on Windows XP.
I have a form with a series of radio buttons. Certain options (e.g. "other"), if selected, require an additional text input. Since radio button lists are treated as one item in the tab order, I have not yet found a way to set the tab order so that the related text input immediately follows the radio button, e.g.:
o Blue (please specify shade: __________)
o Other (please specify: __________)
I am considering changing the radio buttons to checkboxes to better facilitate this. However, if there is a way to detect that a certain radio button has been selected and advance the user directly to the associated text input, or if it has not been selected, skip the associated text input entirely, that would be ideal. (Radio buttons are also desirable in this case because the custom screen reader text for the radio button list is announced before each option when a screen reader or the read out loud function of Acrobat Reader is used--the checkboxes appear to require additional screen reader text for each option.)
The form is to be static and printed, whether filled out on a computer or by hand, so all options need to be present and visible.
Thanks in advance for any suggestions.
Thanks, Steve. The example was very helpful. It does produce some unusual behavior, though.
Select Green with the mouse. Select Blue with the mouse.
Result: Blue is not selected, and now Red has focus (not blueShade).
Select Green using the arrow keys. Select Blue with the arrow keys.
Result: Blue is selected, but Red has focus (not blueShade).
I understand why that is happening--the user exits Green, which sets the focus to Red (although I'm less clear as to why, in the first example, Blue is not selected).
Since the form I am working on will probably be updated annually and not necessarily by me, I am going to convert the radio button lists to checkboxes. I think the tab-order will make much more sense that way without any scripting.
Thanks for your help.