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

Multiline label on button

noodlefix
Registered: Oct 18 2011
Posts: 2

Hi there,
 
I am creating an interactive PDF and I am stuck with creating multiline labels on buttons. I have found a solution for when the button is up - js which tells it to split the line of text - but this solution won't work for the rollover state and the text will appear in one line.
 
Any ideas on how to fix this?
 
Thanks :)

My Product Information:
Acrobat Pro 9.0, Macintosh
try67
Expert
Registered: Oct 30 2008
Posts: 2398
Are you setting the text with a script, or via the GUI? When you use the former, it works fine. For example:

this.getField("Button1").buttonSetCaption("some text\nsecond line",2)

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1875
Although you can use JavaScript, on the Mac you're not limited to just it. To add a carriage return for a button label, hold down the option key and press the return (enter) key.
noodlefix
Registered: Oct 18 2011
Posts: 2
Thank you both! :)