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

Field Calculation, IIF statement

Nita
Registered: Jan 2 2007
Posts: 10

I am trying to use IIF statement and it doesn't seem to be working. I am trying to say if the date if less then or equal to 12/31/06 then use 0.445 else use0.485. It does not take "=" value when calculating.
Code:
var date=this.getField("date3").value;
var cent=(event.value

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You're script didn't come through, but don't bother reposting until you've read this article.

[url=http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/date_time_part1/]http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/date_time_part1/[/url]

Thom Parker
WindJack Solutions
[url=http://www.windjack.com]www.windjack.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://partners.adobe.com/public/developer/en/acrobat/sdk/
pdf/javascript/AcroJS.pdf]Acrobat JavaScript Reference[/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script