Remove or exclude object from tab order | Community
Skip to main content
November 19, 2009
Solved

Remove or exclude object from tab order

  • November 19, 2009
  • 4 replies
  • 5848 views

In one portion of a form I'm designing, the user is supposed to enter several numbers in a table, and at the bottom two numbers are automatically calculated for them.

I explain in the instructions for the form that some fields are automatically calculated, but I actually do not have room in the actual form to add a note next to every calculated field reminding people of that.  I've added code so that if a user tries to click on the automatically calculated field, a messagebox comes up explaining that the field is automatically calculated.  However, I do not want such a box to come up if someone is just tabbing through the objects on that page.  That would be annoying.

What I want is to be able to exclude those two numeric entry fields from the tab order alltogether.  Adobe should just skip those fields when a user tabs through.  I can't figure out how to do that though.  Is there a way?  Other suggestions?

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by djaknow

Set the fields you want skipped to Read Only in the Object tab under Value >> Type and go to your XML Source tab. On the XML Source tab, hit ctrl + H to open up a find and replace window, find readOnly and replace it with protected. The fields will then be completely skipped in the tab order. If they're already set to Calculated - Read Only then you only need to do the find and replace.

djaknow

4 replies

djaknowAccepted solution
November 19, 2009

Set the fields you want skipped to Read Only in the Object tab under Value >> Type and go to your XML Source tab. On the XML Source tab, hit ctrl + H to open up a find and replace window, find readOnly and replace it with protected. The fields will then be completely skipped in the tab order. If they're already set to Calculated - Read Only then you only need to do the find and replace.

djaknow

tadobeeeAuthor
December 8, 2009

I implemented this fix, and it worked great in the form.  Unfortunately, today we tried our back-end server program (which had largely been validated already and was good to go) and found that it could no longer parse data from the "protected" fields.  Does protecting those fields make them non-parsable, and is there a way to get around that?

Thanks again for any suggestions!

December 8, 2009

You could set the fields back to "open" on the pre-save event using the script

this.access = "open";

When the form is saved, the fields would no longer be protected so I'm not sure if this is the best solution for you but I think it would work so you could at least test the form and verify your integration.

tadobeeeAuthor
December 8, 2009

Actually, it is working ok.  It had been failing on one of the first fields (which was one of the few that we had made protected).  We thought it was because we changed it to protected, but it looks like this file got corrupted somehow.  I reverted to an earlier version, updated with the lost changes, and now everything is working fine.

Sorry for my confusion.