I've searched and searched, and I can only find radio button examples, so I'm hoping that this is a relatively easy fix.
Text Field Name: CityBooths
Combo Box Name: RentBooth
Options for RentBooth: Rent (Export Value = 1)
No (Export Value = 2)
If the value of Citybooths is less than 10 then RentBooth index should be 2 (No). If Citybooths is greater than 10 then Rentbooth index should be 1 (Rent)
Custom Calculation Script
If (Citybooths.editvalue < 10)
{
this.field.index = 2
If (Citybooths.editvalue >10)
this.field.index = 1
}
Any help would be appreciated. I am using Acro Forms. Acrobat 9 Pro.
For starters, you can't access a field using this.field. There's no such thing.
Also, a field object has no property called index, nor editValue.
Also, you're missing an opening bracket ({) at both of your if statements.
I suggest you go back to the reference files and have another look there.
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com