Text box linking

Dec 01, 2017

Copy link to clipboard

Copied

So I am trying to create a form that the text boxes link together, and so far ive run into a problem


I am using this script

var t1=this.getField ("Name of First Text Box");
if (event.fieldFull)
{getField("Name of Second Text Box").setFocus();}

And while it allows me to link them forward I can not backspace into the first field.

Is there anything I can do to make them backspace into the first field once in the second?

I am very new to java and i found this script so any help would be greatly apreciated.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

223

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more

Text box linking

Dec 01, 2017

Copy link to clipboard

Copied

So I am trying to create a form that the text boxes link together, and so far ive run into a problem


I am using this script

var t1=this.getField ("Name of First Text Box");
if (event.fieldFull)
{getField("Name of Second Text Box").setFocus();}

And while it allows me to link them forward I can not backspace into the first field.

Is there anything I can do to make them backspace into the first field once in the second?

I am very new to java and i found this script so any help would be greatly apreciated.

TOPICS
Acrobat SDK and JavaScript, Windows

Views

224

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Dec 01, 2017 0
Adobe Community Professional ,
Dec 01, 2017

Copy link to clipboard

Copied

I've been trying to figure this out for over 10 years. Give up. It'll never work the way users will expect it to. You  can't select across the field break, backspace stops at the start of the second field etc.

Instead, create an input dialog that captures all of the text at once and then do something reasonable to break it up across the fields.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 01, 2017 0
Adobe Community Professional ,
Dec 01, 2017

Copy link to clipboard

Copied

I too have tried to figure this.  The fact is that there are not enough events and event properties so implement it properly.

Joel has it right. Use a popup response box, custom dialog, or just a big scrolling field to capture the text and then split it up.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Dec 01, 2017 0