Skip to main content
Participant
October 23, 2017
Question

Using variables in mailto hyperlinks?

  • October 23, 2017
  • 2 replies
  • 1308 views

I need to insert a variable into a mailto hyperlink in a PDF doc. Static text is easy...

message URL mailto:<email address>?subject=Feedback for page

Clicking this in the PDF will launch the mail client with the subject of "Feedback for page" in the subject line. But I really need it to automatically populate with the current page number as well. So, I guess it's a dynamic link? Here's what I want to do but I can't get it to work....

message URL mailto:<email address>?subject=Feedback for page&<$curpagenum>

I've tried it witht he brackets removed and without the dollar sign. Both times the variable is just ignored. Anyone done this? Thoughts? Is this even possible?

This topic has been closed for replies.

2 replies

Participant
October 23, 2017

Anyone know if this is possible without third party software?

using variables in a mailto hyperlink for PDF?

Legend
October 24, 2017

joeyw80200066,

This is not supported, although it would be kind of a cool feature. That said, it would be a very simple ExtendScript to pull it off, it were important enough to you. Any time I need something tricky like this, I turn to ExtendScript. It is remarkable what it can do.

Russ

Jeff_Coatsworth
Community Expert
Community Expert
October 23, 2017

Might have to use some third-party plugin like Timesavers to achieve this...