How to create a "sub-form" within a fillable PDF form to be distributed to users? | Community
Skip to main content
michellec666400
January 23, 2018

How to create a "sub-form" within a fillable PDF form to be distributed to users?

  • January 23, 2018
  • 1 reply
  • 11174 views

I'm creating a fillable PDF form with Acrobat Pro DC to be distributed. I created an action button in the form, which will open a sub-form saved on my desktop. However, when distributed, other users cannot access this "sub-form" by clicking the button. I see that I may need to add an opening preference for the target file, but how do I do this? Thanks!

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Thom_Parker
Level 4
January 23, 2018

If this "SubForm" is a completely different file, then the best way to distribute it is to make it an Attachment to the other file and then use the "GoTo Page View" action on a Button to open it.  There's also a JavaScript function for this.

You could also put it on a server and have the button open the file from an URL.

michellec666400
January 23, 2018

Thanks! This sub form is a completely different file. In fact, this sub form has another sub form embedded in it, too. Because of the nature of the documents, I cannot use the "goto page view" or the URL function. Is there no other way to do this? Would you know how to add an opening preference for the target file? I really appreciate your help!

Thom_Parker
Level 4
January 24, 2018

Why can't you use the "Goto page view"?  This is the preferred method because it will work when JS is not available. Just open the attachment in another Acrobat tab and when you select the "Goto page view" action, click on the embedded file.

The JavaScript for this is tricky, but here it is:

var oDoc = openDataObject(dataObjects[0].name)

app.openDoc(xx.path)

This code opens the first file attachment. And it won't work everywhere.