Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
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

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

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.

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

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

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

would you explain it more?

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

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.

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

Thanks a lot

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

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