Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Simple Tool Tip Question

Avatar

Level 3

I have a simple text box that I would like to have display a tool tip when the mouse is hovered over it.


I have included the desired text in the object's Tool Tip section (under accessibility), but the tool tip does not display.

The tool tip has worked for other objects that I have worked with, but never works with text boxes.

I have included the very basic form for reference.

Thank you

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

Th eonly way to get the tooltip is if you have an input field. Even if I have the input field as readOnly the tooltip will not appear as there is no input for the user. So your only option is the single obejct with the text being the caption. The tooltip will appear when they hover over the input portion of the box and the text portion.

Paul

View solution in original post

4 Replies

Avatar

Level 4

The object you want the tool tip to be in must be editable by the end-user, otherwise the tool tip won't be displayed.

Try to check if that is the case.

Avatar

Level 3

The object in question is a static text box followed by a lengthy text entry field.

Would it be wiser to combine the text box and text field into one object, with the text box now as a caption?

If that is the case, I would still prefer that the tool tip only appear if the mouse is over the caption portion.

Another idea would be to change the text box into a text entry field, but make the entry portion invisible/nearly invisible.

What does the voice of experience have to say?

Avatar

Correct answer by
Former Community Member

Th eonly way to get the tooltip is if you have an input field. Even if I have the input field as readOnly the tooltip will not appear as there is no input for the user. So your only option is the single obejct with the text being the caption. The tooltip will appear when they hover over the input portion of the box and the text portion.

Paul

Avatar

Level 4

You can have 2 text boxes, one for the user input (no caption) other for the label (here the input section is not visible because you'll set the width to 0). This way you can get the tool tip on the label only. For the end user this will be transparent.

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----