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

Button to Cycle through Font Colors

Mr_Grump
Registered: Jul 17 2008
Posts: 27

Hello All

I'd like to be able to use a single button to cycle through font colors in a text field. I'm currently using a RadioButtonList but it occupies to much space. Any help would be greatly appreciated.

Thanks

Lane

George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
How many colors do you want to cycle through, and what are they? Instead of cycling, how about using a popUpMenu and allowing the user to choose a particular color? Are you creating the form in Acrobat or Designer?

George
Mr_Grump
Registered: Jul 17 2008
Posts: 27
Hi George. Thanks for your reply.

I currently am using just red, green and black. My RadioButtonList uses the format

txtfldCOMMENTS.fontColor = "255,0,0";

I've not thought about a popup. Might be a good idea. The user fills in a text field and uses a font color to indicate what action needs to be taken. I'm just looking for the easiest way for the user to change the font color with the least effort. I'm open to suggestions.

Thanks

Lane
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
Are you creating the form in Acrobat or Designer?

George
Mr_Grump
Registered: Jul 17 2008
Posts: 27
Sorry George. Should have made that clear. I'm using Designer (came with Acrobat 9) and working with JavaScript. I'm new at JavaScript so building a form that will help me on the job seemed like a good start.

Thanks

Lane
George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
Sorry, but I won't be able to help with Designer, but maybe someone else can.

I'm curious, why have you chosen to do this in Designer, as opposed to Acrobat?

George
Mr_Grump
Registered: Jul 17 2008
Posts: 27
No particular reason. Just wanted the experience.

Thanks again for offering to help.

Lane