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

JavaScript code to embed a vcard in a button (Action: on click > save contact) should work on android or IOS

New Here ,
Jul 06, 2019 Jul 06, 2019

Copy link to clipboard

Copied

can any help me please,
I do have a PDF form with a phone number in it and my client wants the phone number to be clickable and to pop-up a (vcard)

to "save contact"
I have found a way to open the phone number -by clicking on it-  shows on the caller dialing screen to make a call but it is not enough, I need it to open save as contact with all contact details (number, name, address, mail ....etc)
Thanks a lot

TOPICS
Acrobat SDK and JavaScript

Views

2.2K

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

correct answers 1 Correct answer

Community Beginner , Jul 06, 2019 Jul 06, 2019

You'll need to post the vcard to a public URL and then create a link to it from the button. It needs to be a regular PDF link, not a scripted link. The PDF will execute the link and then the OS takes over and handles the vcard file type.

Votes

Translate

Translate
Community Expert ,
Jul 06, 2019 Jul 06, 2019

Copy link to clipboard

Copied

Even it if was possible with a script, it's highly unlikely to work on mobile devices, at all.

Votes

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 06, 2019 Jul 06, 2019

Copy link to clipboard

Copied

would you explain it more?

Votes

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
Community Expert ,
Jul 06, 2019 Jul 06, 2019

Copy link to clipboard

Copied

The support for JavaScript in PDF applications on mobile devices ranges from non-existent to very limited, especially when it comes to things like opening external files or otherwise interacting with the operating system.

Votes

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 06, 2019 Jul 06, 2019

Copy link to clipboard

Copied

Thanks a lot

Votes

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
Community Beginner ,
Jul 06, 2019 Jul 06, 2019

Copy link to clipboard

Copied

LATEST

You'll need to post the vcard to a public URL and then create a link to it from the button. It needs to be a regular PDF link, not a scripted link. The PDF will execute the link and then the OS takes over and handles the vcard file type.

Votes

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