Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Add a row to table via js

Guest
Nov 01, 2017 Nov 01, 2017

Hello there,

is it possible to add row to a existing table in a pdf form with js, where each cell of the new row contains a form-fileds.

thx.

TOPICS
Acrobat SDK and JavaScript , Windows
1.9K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 01, 2017 Nov 01, 2017

You can add fields using JavaScript, yes, but you can't use it to "re-flow" the document, so you'll have to leave empty space on the page for the additional rows, in advance.

Instead of adding additional fields you can spawn whole pages, though. So when the user reaches the last line of the table they could use a button to generate a new page with an empty table. This would require setting up a Template object and a script to spawn it.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Guest
Nov 01, 2017 Nov 01, 2017

I also found a section about XFA in the "Developing Acrobat Applications Using JavaScript". And ask myself if I can use functionality offered by the XFA plug-in just with js or do I need Adobe LiveCycle Designer to create dynamic PDF Form file?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Nov 01, 2017 Nov 01, 2017
LATEST

To create XFA forms you need LiveCycle Designer.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Nov 01, 2017 Nov 01, 2017

It is possible to do do this in LiveCycle but not Acrobat..

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines