Skip to main content
Ericsson Wursthorn
Participant
August 12, 2019
Answered

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 reply
  • 897 views

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!

    This topic has been closed for replies.
    Correct answer 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 reply

    Steve CorderoCorrect answer
    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