How to populate drop down options with values from text fields (PDF form)
I have a drop down field "Weight" where I want the drop down field options to be the values from various text fields.
Speficifically I have text fields Wt1, Wt2, Wt3, Wt4, and Wt5.
The values of these text fields is determined based on other fields and user input.
I would like the drop down options that appear in "Weight" to be the values of these text fields.
I've tried something like the below. with no luck:
var wt1 = this.getField("Wt1").value;
var wt2 = this.getField("Wt2").value;
var wt3 = this.getField("Wt3").value;
var wt4 = this.getField("Wt4").value;
var wt5 = this.getField("Wt5").value;
this.getField("Weight").setItems([wt1,wt2,wt3,wt4,wt5]);
I suspect it is an easy thingto do just don't know the code or where to put it, i.e., as validation, caculation, etc.
Thanks in advance for any help on this.
