Interactive PDF with email submit with field names in subject line
Copy link to clipboard
Copied
I am creating an interactive PDF with a Submit button. The Submit button is set up with the URL
"mailto:name@email.com?subject="
I know I can write the subject line after that, but I would like to include field names in the subject line.
For example, I have a text field asking for a guests name, with the field name "guest_name". I would like to know how to do this. I would think it would be something like
"mailto:name@email.com?subject=[guest_name] is attending this event."
Copy link to clipboard
Copied
Copy link to clipboard
Copied
Move the " bevore [guest …"
Copy link to clipboard
Copied
I'm not sure what you mean. Are you saying I should write it like:
mailto:name@email.com?subject="[guest_name] is attending this event.
Copy link to clipboard
Copied
Why are you doing this as a PDF? A lot of these features won't work on mobile or many third party desktop PDF readers. Since this requires an active internet connection anyway, why not just put a form on your website?
Copy link to clipboard
Copied
Hi Brenden,
I recently created interactive PDF with a submit button in inDesign and found it easier to just add\edit the functionality of the submit button in Acrobat. In the buttons properties under the Actions tab you can add and run a javascript.
Edit the below script for your needs......
var myGuest = getField("guest_name").value
var date = new Date();
this.mailDoc({
cTo: "YourEmail@Wherever.com",
cCc: "",
cSubject: myGuest + " is attending this event. "+ date,
cMsg: "\rThis text is to confirm that " + myGuest + " is attending this event in the body of the Email."
});
Hope this helps!
Regards,
Mike
Copy link to clipboard
Copied
I admire the effort, but I stand by my earlier advice. Put a proper HTML form on the website.
Copy link to clipboard
Copied
Hi Bob,
No it was not tested on mobile devices, third party PDF readers and browsers, my target audience were all internal Acrobat Reader or Pro users with no website to speak of.
Regards,
Mike
Copy link to clipboard
Copied
That's just not the case anymore. I wrote this four years ago today (thanks to Facebook for reminding me):
https://www.boblevine.us/its-okay-to-say-no-to-interactive-pdf/

