• Resolved geea

    (@geea)


    Hi there,

    Thanks for your plugin, very useful! One issue though: tooltips show just fine on all fields except for 2 types:
    – html field
    – section field.
    They show up on the backend, but nothing is generated on the frontend.

    • This topic was modified 3 years, 7 months ago by geea.
Viewing 4 replies - 1 through 4 (of 4 total)
  • 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 3 years, 7 months ago by geea.
    Plugin Author Mehbub Rashid

    (@mehbubrashid)

    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.

    Plugin Author Mehbub Rashid

    (@mehbubrashid)

    @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

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Tooltips don’t show for Section and HTML fields’ is closed to new replies.