Submit button gives bad parameter
Copy link to clipboard
Copied
Can't get Submit button to work - it gives 'bad parameter'. It is configured to send whole pdf to mailto:myemail.com. This is in a test pdf with just one field, and a submit button, Added another button to open a URL, which is set to the same mailto value, which works as expected, i.e. opens an empty Microsoft email (but of course does not attach the pdf). Shared pdf here https://drive.google.com/file/d/1-rMsWNJ3DuZi7a6PUY4OyqlqhZzKueBw/view?usp=sharing
Copy link to clipboard
Copied
Didn't give me an error. However, since it is submitting the entire PDF it will only work on Acrobat Pro.
Use the Acrobat JavaScript Reference early and often
Copy link to clipboard
Copied
Just tried it on my Android phone, which only has reader installed, and it works as expected. Now also tried it on another PC with only reader installed, and it gives no error, but wants me to sign in to an Adobe account. On the original PC where the pdf is created, which has Acrobat Pro installed, you cant install reader as well.
Copy link to clipboard
Copied
Now tried the other data optioons (html, fdf) - all have the same issue
Copy link to clipboard
Copied
Looks to me like either Submit is only intended for people who have subscribed to Adobe and the Android success is a loophole they forget to plug, or its is a bug in Reader - hopefully, otherwise the feature is of no use to the general public, who only have Reader
Copy link to clipboard
Copied
No, that's not the case. The submit command is unrelated to your Adobe account.
Make sure you have an email account set up in the application (under Edit - Preferences - Email Accounts) and it should work. The second button will not attach the PDF file to the generated email, though.
Copy link to clipboard
Copied
I have now tried various different platforms and preferences, and consistently see the Android phone works as advertised - the submit button (after being offered how to share) will open gmail, with the correct send email address and attached the pdf. If you try again it even creates and attaches a new pdf version named (original)-1. or -2 ... Android is iti s working beatufully. However on a laptop with Windows 10 and Acrobat Reader, it doesnt really work - it does open a draft email, but no pdf is attached, and send to is blank - so actually worse than the URL link button!
Copy link to clipboard
Copied
In what application are you opening it on the laptop?
Copy link to clipboard
Copied
Acrobat Reader
Copy link to clipboard
Copied
To be clearer - the 'Bad Parameter' issue is on a Windows 11 laptop using Acrobat Pro (trial)/Preview where I Ptepare Form. Submit button not doing anything other than opening a blank email is on Windows 10 laptop with Acrobat Reader
Copy link to clipboard
Copied
Ah - an important update! It creates a blank email which appears and is waiting to be filled in/sent. But also it has created the correct email (with right sendto addrss and attached pdf), but left it in the Drafts folder (I now see dozens of these!). So its almost working, but not quite. Presumably something to do with it being google mail rather than Outlook?
Copy link to clipboard
Copied
Correct, the email will not be sent automatically. The user has to manually click the "Send" button in their email application, whether it's Outlook, Gmail, or anything else.
Copy link to clipboard
Copied
Ok, I guess it makes sense not to actually send it. But it is not abvious that it has been created in drafts - it should display the draft email, so you can see what it's created, alter and then send it. The blank email is a real distraction (unless I accidentally added that as an another action to the button - which I can't see, because I now have reader installed instead of Acrobat Pro, and it seems I can't have both installed at the same time)
Copy link to clipboard
Copied
Yes, the draft should open by default. It does that for me.
If a blank email is created then you might have additional actions associated with the button.
You'll need to share the file for further help with this.
Copy link to clipboard
Copied
Cheers, Dave Q
Copy link to clipboard
Copied
File attached. Thanks for pursuing this
Copy link to clipboard
Copied
Which button generates this "blank email", exactly?
The two "Open a web link" commands will not attach the PDF (or any form data) to the generated email, by the way.
Copy link to clipboard
Copied
Either of the Submit buttons. The other buttonswere just to make sure it would actually create an email
Copy link to clipboard
Copied
I no longer have Pro (it was a trial). So can you confirm the Action for the submit button was ok? When invoked, it creates a new tab in Chrome, creates a blank email, creates the correct email in drafts (but not obvious in what order it does the 2 creations), but then displays the blank email instead of the draft

