Skip to main content
Participant
March 15, 2017
Question

Fillable form; required fields w/error messages; tabbing sequence goes to the top of the form.

  • March 15, 2017
  • 2 replies
  • 726 views

Acrobat Pro DC: I've created a fillable form (with required fields which have error messages if they are "tabbed through"). After I return to and complete one of these fields, the tabbing sequence returns to the top of the form, instead of resuming from where I am. How can I make the tabbing resume from the current location?

This topic has been closed for replies.

2 replies

Legend
March 16, 2017

Also if you are using JavaScripting let us know and we'll move this question to the appropriate forum in that case.

Legend
March 16, 2017

How have you set the error messages for the required field? Are you using a JavaScript for this?

You might need to ensure -- as part of the JavaScript -- that the field that is being checked remains active. (e.g. the cursor is returned back to that field allowing the user to enter required data).

kevhiggsAuthor
Participant
March 16, 2017

Hi, Cari.  Thank you for your reply.  Yes, I am using javascript for the error messages.  Below is an example; each required field has a similar, but customized “Specify the…” message.

f = getField(event.target.name)

if (f.value.length == 0)

    {

    f.setFocus()

    //Optional Message - Comment out the next line to remove

    app.alert("This field is required. Specify the NPI.")

    }

I am not a “programmer,” I am a writer/editor; so this javascript stuff is new to me.  Any idea what I’ll need to add to this in order to ensure that “the field that is being checked remains active”? Thank you very much!

- Kevin

Legend
March 17, 2017

I've moved this post to the Javascript subspace on Acrobat forums in the hope someone there can help you.

I've spent about 30mins trying to see if I could add a 'goNext()' function that would force going to the next field, but I'm thinking the entire script might need an overhaul to work properly, as when you just click in the fields you leave empty and don't use Tab controls things don't work properly either (no alerts appear).