Skip to main content
Inspiring
January 17, 2018
Answered

Dynamic addition of image fields in PDF form? (Acrobat Pro DC)

  • January 17, 2018
  • 2 replies
  • 1900 views

Hey everyone,

For a form where an inspector inspects a building, I'd like to have a variable amount of image fields the user can put images into. However, depending on the building and exceptions for the task at hand, It'll vary per building how many image fields will be required in the form.

I've found the Forms image field excellent for images in general, so I'm planning to use that. However, I'd like to be able to dynamically add these image fields with say, the press of a button. Ideally with a + button to add an image field, and a - button to remove the last image field.

Is this possible?

This topic has been closed for replies.
Correct answer George_Johnson

In that case template spawning won't work, but you can show/hide fields.

2 replies

Thom Parker
Community Expert
Community Expert
January 17, 2018

On what kind of device will this form be used?  There aren't many good solutions for this on a mobile device, unless that device is a full Mac or Windows tablet. 

Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Inspiring
January 19, 2018

It'll be used on pdfExpert6 on mainly modern Ipads

George_JohnsonCorrect answer
Inspiring
January 19, 2018

In that case template spawning won't work, but you can show/hide fields.

Inspiring
January 17, 2018

You can use the templates feature to dynamically add new pages to a document. Such a template could include one or more button fields (aka image fields) that are used to display images. It's possible to show previously hidden image fields, but this seems unnecessarily complicated. You could add a script to an image button allowing the user to hide it if it won't be used.