Setting tab order to include fields in hidden subs | Community
Skip to main content
ReluctantProgrammer
October 21, 2022
Solved

Setting tab order to include fields in hidden subs

  • October 21, 2022
  • 2 replies
  • 2204 views

I have a form that has 2 subforms with 2 fields in each. The subforms are each hidden and become visible based on information entered in a defined field.  I have set the tab order to include the fields in each of these subforms but the tabbing does not work. I don't even know if this is something possible.  Subs are Sub22 and Sub 23.  If the FFY field is set at 23 then Sub 23 appears and the order should be FFY, Campaign, Enforcement, Date.  The same for Sub 22 if FFY is set at 22.  Only one sub can be showing at any one time.

 

https://drive.google.com/file/d/1iH0cUxE4MfEpmtEX0u2NOLi18Z8sGKbB/view?usp=sharing 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by radzmar

I was afraid it might be something like this.  Thank you for the verification.

 

What/where is the scripting that will do this?


Since you've used the Action Builder to set the presence of sub22 and aub23, it would be the easiest to use it also to set the focus. It come with such an action already, you just have to add it to the existing actions. 😉

2 replies

radzmar
October 22, 2022

There's a Tab order palette in Designer you can use to set up the tab order the way you want it. If it'S nit show, you can activate it from the View menu.

 

ReluctantProgrammer
October 24, 2022

That's what I have done.  However the tabbing only seems to works for the fields in the first subform.  However, when trying to set the order when the second subform is visible it really gets out of whack....

I have never seen this happen before.  I tried to delete and rebuild the fields located in the second subform but that made no difference.

 

Mayank_Gandhi
Adobe Employee
Adobe Employee
October 26, 2022

@reluctantprogrammer you can set up a custom tab order using the tab order tab. It should work for all the subform. send a test form here.

 

Have you tried making the subform visible and setting tabbing?

ReluctantProgrammer
October 26, 2022

Yes I have done this.  Here is the file.

 

 

radzmar
November 5, 2022

The tab order you set up with designer is hard coded into the form template. Each field can have a <traversal> element which points to the another field the focus has to be set next. This traversal element is not bound to anything so it can't be controlled by a input value or so. In your case it can only point to sumform sub22 or sub23 but not both. You'll have to use scriptings to tell the PDF viewer, where the focus has to go when selecting this ort that.