Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.
SOLVED

Set focus to object other than field

Avatar

Level 7

I have a fairly large subform with a number of fields in it. In certain cases, I want to move the user's screen such that the top of the subform is showing. I've tried xfa.host.setFocus(), providing it with the subform object, but this does nothing. The documentation is not clear on whether this should work. Any ideas?

1 Accepted Solution

Avatar

Correct answer by
Level 10
2 Replies

Avatar

Correct answer by
Level 10

Avatar

Level 7

Hi Radzmar,

This is very helpful. I didn't like the use of the FormCalc from JavaScript, so I cobbled some code together and now that dependency is removed. There also some changes to how the extents are calculated. Here is the revised form.