These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Form Collection Not Working for Special Submit

pbarron
Registered: Jun 5 2007
Posts: 4
Answered

I have a PDF form that has a submit button that submits the form via email, but it derives it's To: value from a drop-down field on the same form using a simple Javascript. It works like a charm, but I think it's getting in the way of doing the collection thing.

I do the "Distribute Form" step (to begin the process of creating the collection) and it throws the error: "Acrobat cannot distribute this form because it contains multiple submit buttons with different formats or return URL's."

I have another PDF form that has 2 submit buttons on it, but the email addresses are clearly defined for those buttons and the collection process worked just fine for that form. However, for THIS form, it also has a submit button that works off the Javascript as described above. I'm pretty sure that's what's getting in the way because the distribute process doesn't know what email address to use from that drop-down!

So, is there a way to get the distribute form process to ignore that submit button or the Javascript it uses, or is there a way to slightly modify the form button so it still works but is ignored by the collection creation process?

Thanks in advance!

PBarron

My Product Information:
Acrobat Pro 8.1.1, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
The distribute/compile form functionality is pretty simple. It has to be to useful for most forms. It expects the submit button to have a static setup that's complete. But this shouldn't stop you. Just give the button a dummy email address, and then fix it up durring the submit. Like you are already doing. i.e., make the distribute form process happy, but use runtime JavaScript to make it do what you want.

You don't have to use the distribute function to use the "compile data" function. You can create a data collection separately (with a dummy form) and import data from any form into it.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

pbarron
Registered: Jun 5 2007
Posts: 4
Thank you so much thomp!

Your reply is the answer. The other PDF I mentioned that's working should work fine as the compile collection file...I may get a field mismatch warning but a quick look at the fields tells me this will not be a problem. If I hit a snag, I'll just create a "dummy'd down" version to use. I might also try the dummy email address to see how that works just for fun! Thanks again!

PBarron