Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Run a Script when you enter a page

Avatar

Level 4

I have the script below in a repeatable subform, which does what I want by putting the value in place on each subform, but only after the cursor enters the first text field. Is there a way to have the action take place when the cursor enters the page?

this.rawValue=xfa.form.resolveNode(this.somExpression.replace("page2","page1")).rawValue;

Thanks for any assistance

Parre

2 Replies

Avatar

Level 7

What event are you overriding? Calculate should run immediately when the form is opened, so you should have no problems.

Avatar

Level 4

When the document is opened there is no data in the text field of the initial subform. Once the data is entered into that text field on page one when I go to the other page, only the first subform is populated. After I place the cursor in that text field of that subform then the other subforms populate. I hope I'm being clear.

Thank you very much for looking at this and please let me know if you need any more information.

Best regards,

Parre

The ultimate experience is back.

Join us in Vegas to build skills, learn from the world's top brands, and be inspired.

Register Now