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

Participant ,
Jan 17, 2018

Copy link to clipboard

Copied

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?

Adobe Community Professional
Correct answer by George_Johnson | Adobe Community Professional

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

TOPICS
Acrobat SDK and JavaScript, Windows

Views

257

Likes

Translate

Translate

Report

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

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

Participant ,
Jan 17, 2018

Copy link to clipboard

Copied

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?

Adobe Community Professional
Correct answer by George_Johnson | Adobe Community Professional

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

TOPICS
Acrobat SDK and JavaScript, Windows

Views

258

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Jan 17, 2018 0
Adobe Community Professional ,
Jan 17, 2018

Copy link to clipboard

Copied

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.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 17, 2018 2
Adobe Community Professional ,
Jan 17, 2018

Copy link to clipboard

Copied

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. 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 17, 2018 2
Participant ,
Jan 19, 2018

Copy link to clipboard

Copied

It'll be used on pdfExpert6 on mainly modern Ipads

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 19, 2018 0
Adobe Community Professional ,
Jan 19, 2018

Copy link to clipboard

Copied

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

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
Reply
Loading...
Jan 19, 2018 3