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

Newby! Additional drop down field in inventory list

Community Beginner ,
Nov 08, 2017 Nov 08, 2017

I am working on an inventory list that current Has 8 lines(down)  7 fields (Across). I would like to add a function that will allow the user to add a 9th line or as many lines as they would need To complete their inventory list. Your guidance is much appreciated.

TOPICS
Acrobat SDK and JavaScript
453
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 08, 2017 Nov 08, 2017

Acrobat forms generally don't allow for that kind of dynamics. You can show/hide fields that you created in advance, but that won't "re-flow" the rest of the file, and/or you can spawn entirely new pages from a Template object with more fields on them, but that's about 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
Community Beginner ,
Nov 08, 2017 Nov 08, 2017

Ok I understand.

The second option. “ spawning an entirely new pages from a template object with more fields on it. Can you explain how that works?

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 08, 2017 Nov 08, 2017

A Lesson in Templates for Adobe Acrobat by Dave Waright. With the newer versions of Adobe Reader one can spawn templates but one does not have full control over the templates. If you have any scripts within the form fields, then you will have to program the calculations and actions to adjust for the dynamically named fields. For ease of script writing, I usually create the form form, add the scripts with code that dynamically adjust the field names for the renamed fields, convert the form to a template, spawn a new page, hide the template page, and rename all the fields on the spawned page to be prefixed with "P0." instead of "P1.".

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 Beginner ,
Jan 31, 2018 Jan 31, 2018
LATEST

I want to give the user 5 additional documents that can be spawned in the event they need to add more to the inventory list.

Can the action of spawning a document be done by click a button?

If so I plan on adding this button to each spawned document, so if" in the event they need to add more- they can spawn another inventory list, (up to five times if necessary).

In the event they need less than the five documents, is there a way to add a function to merge the original invoice, and the spawn documents together and send via email? Would there need to be a separate button for this to be performed?

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