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.

Linking two text fields together.

Avatar

Former Community Member

I need to link to text fields together as if it were in word or notepad, you simply hit enter to go to the next line at the end of the text field.

Is it possible?

Sorry I'm a totaly newbie here!

Thanks,

4 Replies

Avatar

Former Community Member

Are you talking about a multiline field (a single field that has multiplr lines in it) or am I missing something?

Paul

Avatar

Former Community Member

Yes. But I need it to fit in a line like below:

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

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

Avatar

Level 7

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.

Avatar

Level 1

This is something I'd like to do however, I'm not sure where to find the "full event'...can you help? I've named my two text fields, and selected the first text field...just need to find "full event" so I can past your code in there.