Set Tab Order with JavaScript?

Explorer ,
Jan 19, 2018

Copy link to clipboard

Copied

I have written a custom action script to add checkbox fields to my form headers. Everything is working fine, but the checkbox fields are added to the end of the tab order. I could avoid this by performing the action prior to adding other fields, but I really like to use this action as a last step.

I've looked at the Acrobat DC SDK Documentation and found the method setPageTabOrder, but that seems to apply changes to the entire page. I'm really just looking for a way to stick the added fields at the top of the order, rather than the bottom. Is this possible?

Thank you!

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

Not possible with JS.

TOPICS
Acrobat SDK and JavaScript

Views

507

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

Set Tab Order with JavaScript?

Explorer ,
Jan 19, 2018

Copy link to clipboard

Copied

I have written a custom action script to add checkbox fields to my form headers. Everything is working fine, but the checkbox fields are added to the end of the tab order. I could avoid this by performing the action prior to adding other fields, but I really like to use this action as a last step.

I've looked at the Acrobat DC SDK Documentation and found the method setPageTabOrder, but that seems to apply changes to the entire page. I'm really just looking for a way to stick the added fields at the top of the order, rather than the bottom. Is this possible?

Thank you!

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

Not possible with JS.

TOPICS
Acrobat SDK and JavaScript

Views

508

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
Jan 19, 2018 0
Most Valuable Participant ,
Jan 19, 2018

Copy link to clipboard

Copied

Not possible with JS.

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...
Jan 19, 2018 0
Adobe Community Professional ,
Jan 19, 2018

Copy link to clipboard

Copied

You can't actually set the tab order but you can script the equivalent. You can add a script to the "onBlur" event of a field that  calls the Field.setFocus() method for the next field you want the user to go to.

What I've been asked to do this for my customers, I start with an array of field names and then write a script that injects the appropriate script into each field automatically.

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...
Jan 19, 2018 0
Explorer ,
Jan 19, 2018

Copy link to clipboard

Copied

Thank you! I hadn't thought of doing that!

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...
Jan 19, 2018 0