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!
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
Copy link to clipboard
Copied
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