Comboboxes in Acrobat do not allow text alignment or multiple lines. So I need to be able to select from a drop down box and my choice populate two textboxes.
views:
22answers:
1
A:
A "drop down box" is a combo box. Case you're actually referring to a list box:
Get the selected indices using:
var a = this.getField("listbox").currentValueIndices;
Retrieve the value of an index by calling:
this.getField("listbox").getItemAt(index, false);
Set the value of a textfield:
this.getField("textField").value = "new value".
paque
2010-07-07 06:41:27
Thank you so much.I think you got me on the right track.this.getField("textField").value = this.getField("combobox").value;that's what I came up with, but it only seems to work once.
sjpizzle
2010-07-07 16:16:30
Make sure you add the script to the right event. I think the safest would be to run the code under Calculate->Custom calculation script.
paque
2010-07-08 07:39:11