I am attempting to populate a text field based on a combo box.
If ComboBox = Outstanding, TextField = 4
If ComboBox = Exceeds, TextField = 3
If ComboBox = Satisfactory, TextField = 2
If ComboBox = Marginal, TextField = 1
Else Text Field = 0
This is what I have so far (after multiple attempts).
var rating = this.getField("ComboBox7").value;
if( rating = "Outstanding" )
event.value = 4;
else if( rating = "Exceeds" )
event.value = 3;
else if( rating = "Satisfactory" )
event.value = 2;
else if( rating = "Marginal" )
event.value = 1;
else
event.value = 0;
Thank you for your help!
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com