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
Solved! Go to Solution.
Views
Replies
Total Likes
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.
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.
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.
@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?
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.
I was afraid it might be something like this. Thank you for the verification.
What/where is the scripting that will do this?
Here you go
xfa.host.setFocus(xfa.form.form1.TextField1);
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.
Well the things you find when you open your eyes!
Thank you so much!
Views
Likes
Replies
Views
Likes
Replies