Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Interactive PDF with email submit with field names in subject line

New Here ,
Jan 23, 2020 Jan 23, 2020

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

 

TOPICS
How to , Publish online , Scripting
2.8K
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 23, 2020 Jan 23, 2020
You might be able to do that in Acrobat.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 24, 2020 Jan 24, 2020

Move the " bevore [guest …"

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Jan 25, 2020 Jan 25, 2020

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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 25, 2020 Jan 25, 2020

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?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jan 26, 2020 Jan 26, 2020

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.

 

Screen Shot 2020-01-26 at 7.47.50 AM.pngexpand image

 

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 26, 2020 Jan 26, 2020
Did you test it on mobile devices and third party PDF readers including browsers?

I admire the effort, but I stand by my earlier advice. Put a proper HTML form on the website.
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Advisor ,
Jan 26, 2020 Jan 26, 2020

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 26, 2020 Jan 26, 2020
LATEST
Thanks. Again, not trying to be difficult here but a lot of people think that a PDF is a PDF is a PDF.

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/
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines