Expand my Community achievements bar.

July 31st AEM Gems Webinar: Elevate your AEM development to master the integration of private GitHub repositories within AEM Cloud Manager.

How do I add a "full event"?

Avatar

Level 1

Originally I was looking to have text flow from one text field (on page one) to another text field (on page 2). I found the following answer however, I don't know where to place the script so it's effective....

------------------------------------

Set the first field to Limit Length to Visible Area and on the full event place this script:

xfa.host.setFocus(Field2Name);

where Field2Name is the name of the field you want the cursor to appear in after the first field is filled up. The user won't need to hit enter, the cursor will just move to the second field when the first one is full.

------------------------------------

I can certainly copy and past that script...I literally just don't know where to put it. Any additional help would be greatly appreciated.

7 Replies

Avatar

Level 10

The Text field has a Full Event.. You can place the code in that event.

Check the screen shot.

Thanks

Srini

Full Event.JPG

Avatar

Level 1

I did what you and the other person said and it's not working. Please see my screenshot to check out my settings. LiveCycle-LinkedTextFields.jpg

Avatar

Level 10

The issue with your code is, you did not place the control name in the double quotes..

For example..

xfa.host.setFocus("TextField2");

Thanks

Srini

Avatar

Level 1

I added the quotes and it's still not working. I'm sorry to bug you about this...any other suggestions?

Avatar

Level 10

You can send the form to LiveCycle9@gmail.com so I can have a look at it.

Please mention where the issue is..

Thanks

Srini

Avatar

Level 10

You need to add the absolute path of the field, since the next field is in a different page.

     xfa.host.setFocus("topmostSubform.Page2.Additional_LRC_Comments");

Now it is working in my system.. Try this and let me know if you still have issues..

Thanks

Srini

Avatar

Level 1

That worked! Bless you! Thank you so much!!!

Beth Cook

Senior Marketing Specialist

Sun Federal Credit Union

419.794.7429

Beth.Cook@SunFCU.org

www.SunFCU.org