I have a project I'm trying to finish. I can easily add Web links to lines of text for this interactive street map for a neighborhood group. However, some businesses do not have Web sites, and only have phone numbers.
I'd like to create an action whereby the user will click on the business name and a pop-up box shows up with the phone number, then goes away when they click away.
Any assistance is greatly appreciated.
Mike
You can also use an alert box:
app.alert("Phone number is: 111-222-3333", 3, 0);
A custom dialog is similar but allows many more options, including images. For more information see the Acrobat JavaScript reference and http://www.windjack.com/products/acrodialogs.php
You can also use a JavaScript action to show a previously hidden button that displays the data you want to show:
getField("phone_no_1_button").display = display.visible;
The user could then click (MouseUp event) the button to make it hidden again:
event.target.display = display.hidden;
The advantage to using a button is a button icon can be anything a PDF page can be (text, images, graphics) and you have control over the size and position of the button.
George