How to copy & past from one block to another in a fill in form with dropdowns

I am creating a fill in form from excel utilizing a drop down box and am unable to copy similar info from one drop down to another.


Robert Kwiecien


3 Answers

Are you refering to the value of the drop-down when a selection is made, or to the actual selection options in it?


Gilad D (try67)   

The actual selection options in it i.e copying multiple responses in one drop down box so the same choices are available in the second drop dl=own box.


Robert Kwiecien   

This code (when run from the JS console) will copy all the options (including export values) from Drop1 to Drop2:

var f1 = this.getField("Drop1");
var f2 = this.getField("Drop2");
var items = new Array();
for (var i=0; i<f1.numItems; i++)
items.push([f1.getItemAt(i,false),f1.getItemAt(i,true)]);
f2.setItems(items);


Gilad D (try67)   


Please specify a reason: