It's actually a little more complicated than the subject line implies.
Making an interactive PDF form.
Can get a short text string to appear or a short text field, using mouse enter action to display a text field.
However, it only dispalys a part of the text in the field and there is no formating.
I would like/need to include in my pdf intructions that will pop up when mouse enter (hover) over a hidden button. The instructions are usually 6-12 lines long and being able to format them, even just to bold the step numbers in the list, would be good, as well as control the font type and size.
I would create the fields with the instructions in advance (use a text field with the Rich Text Formatting option enabled, not a button field, though), and then simply show it when the user enters the "trigger" field and hide it when they exit it.
I only use the button field as a trigger to dispaly the text field. This is so the text field is normally hidden and then appears when hover over the button. (I make the button invisible and place over the document section where instructions are to appear) and use the mouse enter to show the text field and the mouse exit action to then hide it. That works but not all the text shows nor is there any formatting,
Will try your Rich Text suggestion and let you know if this solves the issue that only some of the text in the text field is displayed, and if can format it some.
So far even when I resize the text field it doesn't show all the text, and only the first line if I hit return in text entry.
You've learned a valuable lesson: Never use Word for writing code. I recommend Notepad++, if you're on a Windows machine.
And yes, JS does have a compiler. If you used curly quotes it will display an error message immediately when you enter the code.
Problem solved with respect to single line only appearing...forgot to click the "multi-line" button.
Rich Text formatting does not seem to transfer or work, makes the field unstable in that after a few edits it no longer reflects changes made to the properties.
Last time I wrote any amount of code was in the 90s and then it was mostly machine language, Fotran and some Visual Basic.
May try to improve formatting latter, looking for all the functional bits at the moment.
You should only edit it once, and then leave it as it is. Set it as read-only and only show/hide it when needed.