Avatar

Level 7

Are you using FormCalc or JavaScript? FormCalc requires the "then" keyword, but doesn't recognize the .length property of rawValue. JavaScript can see the "length" property of your field's rawValue, but it doesn't understand "then."

For JavaScript:


if (this.rawValue.length < 50) this.font.size = "10pt";



For FormCalc:


if (Len(this.rawValue) < 50) then this.font.size = "10pt" endif