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

Hover using javascript

Explorer ,
Jul 21, 2016 Jul 21, 2016

Is if it is possible to add text boxes that appears when you hover (or click) on a particular icon or field?

TOPICS
Acrobat SDK and JavaScript
1.0K
Translate
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
Community Expert ,
Jul 21, 2016 Jul 21, 2016

For a field just use the tooltip property (under Properties - General).

For an icon (I assume you mean an image) you can add a transparent button over it and then set its tooltip and it will appear when you hover above it.

Translate
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
Community Expert ,
Jul 21, 2016 Jul 21, 2016

If the tooltip is not enough, see here for a tutorial about how to do this: Floating Text on PDF Documents - KHKonsulting LLC

Translate
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
Explorer ,
Jul 26, 2016 Jul 26, 2016

I am having a text box field. So, whenever the user hover the text field the following text should be shown "Please fill the data which is highlighted on page 3. This we are unable to insert in tooltip because tooltip only allows certain characters. So, i need to do it another way and without adding any button on it. Can anyone help with this?

Translate
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
Community Expert ,
Jul 26, 2016 Jul 26, 2016

What characters from that text are not allowed in the tooltip?

Translate
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
Explorer ,
Jul 26, 2016 Jul 26, 2016

Apologies, that is certain number of characters.

And I have tried the Floating text on PDF documents which is advised by Karl Heinz Kremer and sent for the client review.

I didn't get any update from the client side.

Thanks for the quick response.

Translate
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
Community Expert ,
Jul 26, 2016 Jul 26, 2016
LATEST

AFAIK, there isn't a character limit to the text in the tooltip, but if it's very long it will appear odd on the screen.

Translate
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