norcross / gravity-tooltips

Adds a custom field to each form element for tooltips
MIT License
74 stars 20 forks source link

Trouble getting tool-tips working #18

Closed CliffDugan closed 9 years ago

CliffDugan commented 9 years ago

I've added the tool tips to a client's site: https://www.virgobc.com/signup/, but no matter what I try I can't get the tips to display. Any insights would be appreciated.

norcross commented 9 years ago

can you screenshot the settings page, along with one of the fields you've entered data for?

CliffDugan commented 9 years ago

Thanks for your help. Cliff

image

image

norcross commented 9 years ago

what version of gravity forms are you currently running?

norcross commented 9 years ago

I tested a quick thing my own with both a basic form and a multi-page, and I was able to generate the tooltips. Can you try saving the settings one then re-loading the form?

CliffDugan commented 9 years ago

I re-saved the settings and it worked! Thank You!

Is there any way to format the tool-tip text? I would like to add at least a simple line break in the tip if possible.

Thank you for your help!

norcross commented 9 years ago

in its current state I don't know for sure if it'll take a line break. try saving a <br> in the content and see if it sticks. the field itself may strip it out and it so a workaround would be required.

CliffDugan commented 9 years ago

The
was stripped. Could you point me to the correct php routine and file so that I might be able to override this behavior?

norcross commented 9 years ago

it's actually part of Gravity Forms saving function, so you'd need to do some sort of setup, like saving {{br}} and the converting it on the output. and even with that the JS building the tooltip may strip it out.

CliffDugan commented 9 years ago

Ok. Thanks for the help. I'll do some playing around with code to see what I can come up with