Automatic row entry on fillable form.

lisag82835114

09-12-2016

What are the instructions:  I am creating a form.  I have a text field and two drop downs next to it.  I would like it if the person who is completing the form could just enter and a new line will add automatically.  Is this possible?

Accepted Solutions (0)

Answers (3)

Answers (3)

_Bruce_Robertson

MVP

12-12-2016

Hi,

If I understand correctly you have fields on a row and you want to detect the enter key being pressed?  Pressing the enter key will fire the exit event of the field, in the exit event you can test for the enter key (as opposed to the escape key, tab key or using the mouse).

There is more information about the commitKey property in the reference Adobe LiveCycle ES3 * commitKey

Regards

Bruce

_Bruce_Robertson

MVP

11-12-2016

Hi, Pressing the enter key will fire the exit event of the field with the commitKey property set to 2, so something

if (xfa.event.commitKey === 2)  {

    // code to add row

}