I have spent several hours on this with no resolution and am hoping someone can help.
I'm working on a form in LiveCycle 8. I'm trying to show/hide Field2 based on the value of Field1, but FormCalc seems not to recognize the value of Field1 as a number. This is the script that doesn't work:
if (Field1.rawValue < 2.5) then
Field2.presence = "invisible";
else
Field2.presence = "visible";
endif
I've also tried Field1.value, but it doesn't work either.
However, this works:
if (2 < 3) then
Field2.presence = "invisible";
else
Field2.presence = "visible";
endif
If I manually change (2 < 3) to (2 > 3), the script also works perfectly in reverse.
I've messageBoxed the value of Field1, and it displays the number I expect (i.e., it's not empty or too big or too small).
How can I manipulate the value of Field1 so the first script will work? Or if there's some other workaround, I'm open to it.
Thanks in advance!
Kathryn