Button to attach then open a file.
Hi,
So, I'm creating a fillable form PDF, and something I need to be able to do is have the user add attachments. I found some javascript that seems to do that fine, but it adds the attachments to the attachment list which is a bit inconvenient.
Once the button has been clicked and a file attached, I'd like to change what the button does, so that if you click it again, instead of prompting the user to pick another attachment, it opens the attachment previously added by that button, in the same way it would if you clicked the attachment in the attachment list (opening it in a new acrobat tab, allowing it to be filled out/manipulated as any other pdf is, then saved back to the first pdf as the same attachment).
Is it possible to make a button that can open an attachment like this, and if so, how?
