Dynamic Tooltips

Home Forums Classic DFFS Dynamic Tooltips

Viewing 2 reply threads
  • Author
    Posts
    • #8219
      DCH
      Participant

        Alexander, is it possible to affect the visibility of a tooltip based on a DFFS rule?

        I have a case where the tooltip only needs to be displayed when certain conditions are met in the form.

        Thanks!

      • #8224
        Alexander Bautz
        Keymaster

          Add a function like this to the Custom JS textarea.

          Show tooltip:

          function showTooltip(){
          	$("#dffs_TheFieldName div.customTooltip").show();
          }

          Hide tooltip

          function hideTooltip(){
          	$("#dffs_TheFieldName div.customTooltip").hide();
          }

          Change “TheFieldName” for your FieldInternalName.

          Call the “showTooltip” or “hideTooltip” from your rules – in the “Run these functions / trigger these rules” field.

          Alexander

          • This reply was modified 9 years, 2 months ago by Alexander Bautz. Reason: Wrong function name in the "hideTooltip" function
        • #8254
          DCH
          Participant

            Awesome as usual!

        Viewing 2 reply threads
        • You must be logged in to reply to this topic.