Relative Content

Tag Archive for javascriptpdfacrobat

How can I set cursor position in a text field?

I’m actually working on a PDF in Acrobat Pro 2017.
I have 2 multilines text fields (tfDeclaration1 and tfDeclaration2) and and when the first one is full, the text flows to the second text field. That works just fine with this script being attached on the first text field on keystroke event :

Acrobat PDF Javascript – Set cursor position in a text field

I’m actually working on a PDF in Acrobat Pro 2017.
I have 2 multilines text fields (tfDeclaration1 and tfDeclaration2) and and when the first one is full, the text flows to the second text field. That works just fine with this script being attached on the first text field on keystroke event :