I'm comparing two text fields: if (a.rawvalue < b.rawvalue)
a contains "name name - sf" and b contains "name name - la" (read these as entered, the "name name" are identical)
Shouldn't a be greater than b? In my script the "la" is comparing higher then the sf!
Does the dash cause the compare to stop before the la and sf? Or what?
Does case matter?
Is this a LiveCycle form? If so, post in the LiveCycle forum.
If not, there's no such thing as raw value in Acrobat forms.
Also, the property is called rawValue, not rawvalue (JS is case-sensitive).
Also, you can't compare strings with this kind of operators.
The ' -', space minus, maybe being interpreted as a subtraction operation. Have you tried the Min, or Max fuctions.