These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Visible or Hidden

goslinc
Registered: Sep 25 2007
Posts: 114

I cannot see what I am doing wrong but this is not working:

----- dataroot.P1.SReport.AIssue::exit: - (JavaScript, client) -------------------------------------

if(xfa.dataroot.P1.SReport.AIssue.rawValue>"5,000,000")
xfa.dataroot.P1.SReport.RatingInfo.presence="visible"
else
xfa.dataroot.P1.SReport.RatingInfo.presence="hidden";

If the amount in the AIssue field is greater than 5,000,000 I want the field RatingInfo to be visible to the user, otherwise I do not want it visible. What is wrong? I've tried it without the "" around my dolloar amount and that did not work either.

try67
Expert
Registered: Oct 30 2008
Posts: 2398
Don't know about the hidden/visible part, but you can't use the > operator on a string.
Change this part:
.rawValue>"5,000,000"
To this:
.rawValue>5000000

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com

goslinc
Registered: Sep 25 2007
Posts: 114
I did try it without the "" around the number, that did not work for me either :-(
goslinc
Registered: Sep 25 2007
Posts: 114
ahh....the comma's, I removed the comma's and it appears to work.