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
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