These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Changing a Tooltip in FormCalc?

Selfar
Registered: Apr 6 2009
Posts: 8
Answered

Hi! I'm no expert so bare with me, but I'm wondering if there is a way to cahnge a tooltip in FormCalc.
I'm making an automatic form at the moment, tons of calculations. They are all basic math, but I'm using FormCalc because of my lack of know-how with Java. The rest of the form is in FC also. I have a drop-down list that has choices and for each choice can I make a field effected by the drop-down list result in a seperate tooltip? Example:

if (X eq 1) then
//TooltipCommand = "X = 1"
elseif (X eq 2) then
//TooltipCommand = "X = 2"
elseif...
etc...

Is this at all possibly? Please let me know!
= )

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
To change a toolTip you can use FC like.

Dowpdown list exit event:

if ($.rawValue == "A") then
Textfield1.assist.toolTip.value = "ToolTip A"
elseif ($.rawValue == "B") then
Textfield1.assist.toolTip.value = "ToolTip B"
elseif ($.rawValue == "C") then
Textfield1.assist.toolTip.value = "ToolTip C"
endif

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

Selfar
Registered: Apr 6 2009
Posts: 8
Thanks for the reply.
Sorry, I think my explaination was really bad.
I tried the [i].assist.toolTip.value = "ToolTip"[/i] and I tried it without the [i].value[/i], but neither changed the ToolTip, just the data in the field itself. Sorry for the bad explaination, and like I said, I'm new to all this, haha
I'll try to make it a tad clearer:
I have a Drop-Down List that changes an entry in a Text Field.
I wanted the Text Fields ToolTip to change, but whenever i put any code into the Drop-Down List it wont allow any choices to be chosen. So i have the reactive data in the Text Field(s). So you make a choice on the List and the Text Field has the Calc in it.
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Ok, I don't see a problem in your explaination.

If you use the script I posed before in the exit event of your dropdown list , it will exactly do what you want.
Make sure, you don't use any scripts in the calculate event of the dropdown list.
In this case the field will be set automatically to protected and you can't make a selection.
You better choose the change event.

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

Selfar
Registered: Apr 6 2009
Posts: 8
I don't see what I'm doign wrong, or what's wrong with the form, or something.
But I tried it in the Drop-Down's Exit and Change events as the only script present and nothing.
I tried it in the Text Field change event, nothing but it changing the field itself...
I tried it in a seperate text box used just for that, and nothing.
I switched the ToolTip settings in the Accessibility Tab and nothing.
I just don't see what's wrong, haha
Sorry to keep bothering you...
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Ok,

check out this example form.

https://share.acrobat.com/adc/document.do?docid=5c5dfb75-09cc-4c71-873c-ad7c025fb689

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

Selfar
Registered: Apr 6 2009
Posts: 8
I see what the problem is...I have a PDF with an artwork background and I cannot add the captions to any fields with the background. I did not mention that before assuming it did not matter. I thought the [i]TextField1.assist.toolTip.value = "Tool Tip A"[/i] would change the Tool Tip area in the Accessability Tab.
Thanks for the help though.