Skip to main content
Inspiring
Jan 17, 2018 3:31 PM UTC
Answered

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

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 is closed to new replies. Start a new post to keep the conversation going.
George_JohnsonCorrect answer
Inspiring
Jan 19, 2018 2:46 PM UTC

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

4 replies

Thom Parker
Community Expert
Community Expert
Jan 17, 2018 6:06 PM UTC

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. 

Translate
Thom Parker - Software Developer at PDFScriptingUse the Acrobat JavaScript Reference early and often
Inspiring
Jan 19, 2018 11:22 AM UTC

It'll be used on pdfExpert6 on mainly modern Ipads

Translate
George_JohnsonCorrect answer
Inspiring
Jan 19, 2018 2:46 PM UTC

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

Translate
Inspiring
Jan 17, 2018 4:31 PM UTC

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.

Translate