Thread Starter
geea
(@geea)
Ok, I figured out what’s wrong. Actually the plugin only displays the tooltips for text fields:
function tooltip_editor_script(){
?>
<script type='text/javascript'>
//adding setting to fields of type "text"
fieldSettings.text += ', tooltip_input';
This needs to be changed to allow all field types.
Also, the render_tooltips function needs to changed because not all field types use a <label> tag, so the preg_match needs to match whatever tags other fields are using. Hope this helps!
-
This reply was modified 4 years ago by
geea.
Hi @geea thank you so much for your assist. But I think tooltip should only be displayed for normal form fields (text, textarea, radio, checkbox, select etc) where we have a label. If we dont have label, then I think tooltip is not necessary there. The information user wants to display through tooltip, can be easily achieved by using description of section field and html field. Thanks again
Then perhaps you should void tooltip fields in elements it does not support.
Wastes us time thinking there’s a cache problem when it is your plugin not supporting these fields.
@tekgirlymama I agree..But latest GF has made it even harder to hide a field for specific field type. I will look into it when i have a free time