


You can use xfa.host.setFocus("Subform1.childsubform.textfield1"); to place focus on a textfield/object element inside subform but does anyone know how to setFocus on a subform?
Hi,
the setFocus method only works with interactive objects like fields, buttons etc. not for containers like subforms or areas.
Views
Replies
Sign in to like this content
Total Likes
Hi,
There is a Doc.scroll method, which allows you to move to a particular x and y coordinate. There is an example of using it at , Adobe LiveCycle Designer Cookbooks by BR001: Using the Doc.scroll method in a LiveCycle Designer For..., which might help.
I like using Doc.scroll because setFocus positions the field in the middle of the display area which I find can be confusing. If the user has clicked on something to go to a particular part of the form I think they would expect it to be at the top of the page.
Regards
Bruce