Tooltip is not working. Why?

Tooltip is not working. Why?

  

I'm trying to show a tooltip using tooltip pattern. Has nothing special, a blank page with tooltip pattern, and an input in which I want to show the tooltip on mouse hover but... it's not working.

Any idea why? What I'm doing wrong? How should I use this pattern?


Hello Carlos,

I did a test here (on my Personal, P10), and it is working as it should.
You could see in chrome console if you are getting any JavaScript error (this would explain why it does not work).
Can you provide the module to us to take a look?

Cheers,
Eduardo Jauch

Hi Eduardo!

I have no JS errors... I suppouse I missing something, but I don't know what   

I have attached the OML, tell me if this works for you.


Thx a lot!

Solution

Hello Carlos,

The problem is that the Tooltip must be AFTER the element you are attaching to it.
Otherwise, when it runs the JavaScript, it will not be able to create the listener to the element.

So, moving the Tooltip to after the input will solve the issue.

Cheers,
Eduardo Jauch

Solution

You are completly righ, that was the problem!! Maybe Outsystems could place the widgets scripts at the end of the page, regardless of where you put the widget, to avoid this kind of problems...

Thx again for help!