0

Use Tooltip to echo contents of a field.

Probably for the JS/HTML/CSS geniuses Jacques TUR  :-).

I have formula field which fetches a note field contents from another table.  Because I have to keep the formula field as small as possible the note is not always fully visible (runs off the end of the field).

Since there is a tooltip I am wondering if it would be possible to 'engineer' it so that when the mouse hovers over the field the contents of the field is displayed in the tooltip.

2 replies

null
    • Ninox partner
    • RoSoft_Steven.1
    • 1 yr ago
    • Reported - view

    +1 for this missing and usefull feature. (the use of formulas in the tooltip setting)

    In the meantime while Jacques (or someone else) is looking for a CSS hack, you can use the 'On click' setting with this as formula:

    let p := text('Formula field');
    alert(p)

    So when you click in the formula field an alert popsup with the content of your field.

    Steven

      • Ninox developper
      • Jacques_TUR
      • 1 yr ago
      • Reported - view

      RoSoft_Steven It's good and simple solution 👍. In addition to, you can create a formula with a tooltip like this:

      html("<div class='cards-values' title = """ + Speech + """>" + Speech + "</div>")

      Here, Speech field contain the long text. The text is put in "div" section between <div> and </div>. the "title" attribute in div section define tool tip text (see JS sample here).

Content aside

  • Status Answered
  • 1 yr agoLast active
  • 2Replies
  • 144Views
  • 3 Following