Javacript for Auto font/Size/Color/options for text Fields and Checkboxes
I created a script for my text fields to default to the following settings:
Font Size: 10
Font Color: Blue
Font: Times-Roman
This is working for the most part. However, I would also like to add another default setting for text field, under the option tab only have the "check spelling" box selected.
Also, the current script is not being applied to checkboxes. I would like checkboxes to have the same default setting (Blue, 10) with the check box style set to "cross".
Below is my current script, can I please get assistance with the above additional settings added to my existing script?
/* Auto Detect Font Changer */
for (var i = 0; i < numFields; i++) {
var fName = getNthFieldName(i);
var f = getField(fName);
if (f.type === "text") {
f.alignment ="left";
f.textFont = "Times-Roman";
f.textSize = 10;
f.textColor = ["CMYK",1,1,0,0];
// Other properties go here
}
}
