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

Javascript that sends email for specific radio button selection

Explorer ,
Jun 01, 2017 Jun 01, 2017

I've created a fillable pdf, ready to send for signature (Client agreement) — in the agreement are subscription plans, the client will select one, and I'd like the client to get an automatic email for the payment link based on their selection.

There are 5 radio button choices, each with a distinct payment link url, if selected.

I don't code, but I see that this might be possible to do within Acrobat?

Thanks for any help.

TOPICS
Acrobat SDK and JavaScript
1.0K
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 ,
Jun 01, 2017 Jun 01, 2017

This will require using a script on your web-server, or setting up a special email account with an auto-reply.

You can dynamically set the email address to which the file is submitted using a script in the PDF file itself.

See here fore more details on that: https://acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address

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
Explorer ,
Jun 01, 2017 Jun 01, 2017

Thanks so much try67​ for the quick answer! Not sure I'm smart enough to understand the specifics of your solution — what what I'm trying to do is create a link to a specific url IF the client selects a certain subscription plan within the agreement (Page 3), If "Basic Plan" is selected, then an email goes to the client with this url — does that make sense? I thought I understood that a trigger can be created (if a radio button is selected) and an email could be sent to the client (with a link, for example, in that email).

Thanks at any rate!

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 ,
Jun 01, 2017 Jun 01, 2017

Maybe I misunderstood what you meant originally... I thought you wanted to return an email to the user based on their selection.

If you just want to submit the file to a different email address based on the selection made in the radio-button group (and have a different message body), that would only require a custom-made script. The tutorial I linked to above explains how to do that.

If you're interested I could develop this code for you, for a small fee. You can contact me directly at try6767 at gmail.com to discuss it further.

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
Explorer ,
Jun 01, 2017 Jun 01, 2017

Thanks again try67​ -- lol, the more I explain, the less clear it becomes.

The client agreement is sent to the client to be accepted, completed, signed, and they also select a subscription plan (radio button). I want an email to go to the client (after they've signed the agreement) with the payment link, based on the plan that they've selected.

Doable?

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 ,
Jun 01, 2017 Jun 01, 2017

Just an email, without the actual PDF file attached to it? If so, that's even more tricky... And at any rate the user will have to manually send that email. The script can't do that for them, only generate the draft version.

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
Explorer ,
Jun 01, 2017 Jun 01, 2017
LATEST

Thank you @try67 — we will create an email reply!

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