Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


How do I pull out the phone number entered in the PDF text field and insert it into the link?

New Here ,
Jul 16, 2021 Jul 16, 2021

Copy link to clipboard

Copied

Good afternoon. There is a text field where the phone number is entered, you need to substitute this number in the link format "wa.me/9999999999", where 9999999999 is the phone number entered in the field. The link is also created in a PDF file. I do all this in Adobe Acrobat. How can I do this using JS or another way?

 
TOPICS
JavaScript, PDF forms

Views

58

Likes

Translate

Translate

Report

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
Adobe Community Professional ,
Jul 16, 2021 Jul 16, 2021

Copy link to clipboard

Copied

Where you create link you can try  this:

"wa.me/"+this.getField("Phone Number").value;

Likes

Translate

Translate

Report

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 ,
Jul 16, 2021 Jul 16, 2021

Copy link to clipboard

Copied

I put this in the link and it doesn't work

Likes

Translate

Translate

Report

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
Adobe Community Professional ,
Jul 16, 2021 Jul 16, 2021

Copy link to clipboard

Copied

LATEST

It was just example how to do it, I don't know how you create link you didn't explain that part and "Phone Number" was example field name you need to change that to your actual field name.

Likes

Translate

Translate

Report

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