Hello discussion group,
I have this script in place:
var n = nFirst + nSecond + 17;
// last element represents no. of
// characters in ".@olmc.nsw.edu.au"
if (n >= 24) {
if (n >= 27) {
topmostSubform.Page1.Email_address.font.size = "7pt"
}
else {
topmostSubform.Page1.Email_address.font.size = "8pt"
}
}
else {
topmostSubform.Page1.Email_address.font.size = "9pt"
};
Can anyone suggest why it might not be working? I'm able to change other properties of text fields like fill colour, border edge colour etc., but not font size. I've noticed some posting on this subject use the property TextField.textSize instead? I'm using LiveCycle Designer 9 / Acrobat X.
I'm trying to reduce the font size in a field for an email address so that it's not truncated except for an exceptionally long entry.
Perhaps I have the script attached to the wrong event. I've attached it to a calculate event.
Any assistance would be greatly appreciated.
Michael Sandel