Expand my Community achievements bar.

Tool Tip : Tool Tip not displayed when field is read Only

Avatar

Former Community Member

Hi All,

I want to tool tip to be displayed only for some conditions.

So, i'm trying to display the tool tip using the following code:

if(a>b)

{

     this.assist.toolTip.rawValue = "required string";

}

But the code dosen't work when the field becomes read Only.

Is there any way to display the tool tip for a read Only field ?

Thanks,

VJ

.

2 Replies

Avatar

Level 9

Hello,

Tooltip works only for interactive field, not for non interacive fields like readOnly. Tool tip's work is to help user in filling that field by providing some assistance. If the user cant fill the field(when it's readonly) what's the use of ToolTip. However, in case of ToolTip use "value" rather than "rawValue" for interactive fields.

Thanks.

Bibhu.

Avatar

Level 10

If you need the tooltip you can use a script to avoid changes.

Put this JavaScript into the change event of a field.

xfa.event.selStart = xfa.event.selEnd = xfa.event.prevText.length;

xfa.event.change = "";