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

How to make the phone hyperlink inserted in PDF work on the desktop? How to treat this error as a feedback message?

Community Beginner ,
Aug 12, 2019 Aug 12, 2019

Copy link to clipboard

Copied

Hello! I created a virtual business card in PDF. I put a button to trigger the smartphone phone. When I open the PDF on the mobile phone and click the make call button it works perfectly, but when I open this PDF on the desktop it doesn't work. Does anyone know how I can handle this error if my client accesses the file on computers? I thought of showing a message with the phone number when giving the error. Thank you!

Views

713

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

Adobe Employee , Aug 12, 2019 Aug 12, 2019

Provided that there is an application that can handle the HTTP native URL of "tel:" then you should get a response on the computer desktop.

However, if you want give a message then you will want to use JavaScript with "app.launchURL();" method and construct the exception error message that you want to display if it fails.

The basic JavaScript would be something like this:

app.launchURL("1-123-456-7890");

Thom Parker gives a basic exception example in this link:  https://acrobatusers.com/tutorials/js_exception_handling

Votes

Translate

Translate
Adobe Employee ,
Aug 12, 2019 Aug 12, 2019

Copy link to clipboard

Copied

LATEST

Provided that there is an application that can handle the HTTP native URL of "tel:" then you should get a response on the computer desktop.

However, if you want give a message then you will want to use JavaScript with "app.launchURL();" method and construct the exception error message that you want to display if it fails.

The basic JavaScript would be something like this:

app.launchURL("1-123-456-7890");

Thom Parker gives a basic exception example in this link:  https://acrobatusers.com/tutorials/js_exception_handling

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