Skip to main content
Ericsson Wursthorn
Participant
August 12, 2019
解決済み

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

  • August 12, 2019
  • 返信数 1.
  • 898 ビュー

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!

    このトピックへの返信は締め切られました。
    解決に役立った回答 Steve Cordero

    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

    返信数 1

    Steve Cordero解決!
    Adobe Employee
    August 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