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

Print Tooltips in LiveCycle Designer

TheCFC
Registered: Dec 8 2005
Posts: 9
Answered

I have an XFA form in which every field has a descriptive tooltip which are instructions on how to fill out that field. Sometimes they are long.

Now, the original requestor of the form has lots of revisions. He has marked up the printed form but now I need him to also mark up the tooltips. I'd like to print out all the tooltips in some sort of report format or in Word.

Anything would be better than the current option which would be for him to open up the PDF version of the form, hover over a field, type what it says in a Word document, and make any changes. Yuck!

What are my options?

Forms Manager
Toyota Financial Services

My Product Information:
LiveCycle Designer, Windows
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
Hi,

this can be done in the following way.
Create a regular button and a text field.

Put this JavaSccript into the click:event of the button.
	for (var i = 0; i < xfa.host.numPages; i++){var oFields = xfa.layout.pageContent(i, "field");var nNodesLength = oFields.length;for (var nNodeCount = 0; nNodeCount < nNodesLength; nNodeCount++){if(oFields.item(nNodeCount).assist.toolTip.value != null && oFields.item(nNodeCount).assist.toolTip.value != ""){var TT = TT + "\r&#9679; " + oFields.item(nNodeCount).assist.toolTip.value;}}}Textfield1.rawValue = TT;

That's it.

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

TheCFC
Registered: Dec 8 2005
Posts: 9
Radzmar,
What is the character after the "\r"? Looks like a solid circle. Did something get lost in the pasting? I put the code in my form as directed but I'm not seeing any results in the Textfield1? To be clear, I am previewing the PDF and pressing the button and nothing is happening. Could it be the strange character?

Thanks for writing this for me.

Dustin "TheCFC"

Forms Manager
Toyota Financial Services

radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
You can remove this character, it's a dot I placed in the example to use it as a bullet.
It's not neccessary to use it.

Maybe the reference syntax to your text field in incorrect.
Test the script with
xfa.host.messageBox(TT);
instead of
Textfield1.rawValue = TT;
If this works, the reference syntax is wrong.
Also, ensure you select JavaScript in the script editor.

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

TheCFC
Registered: Dec 8 2005
Posts: 9
That worked and I was able to figure out that the textfield I created was too small to show anything. I made a really large textfield and now it works. Thank you.

Forms Manager
Toyota Financial Services