Trouble With Drop Down Adobe Scripts - Help Please
Is there a maximum amount of data you can have in a drop down box?
I have a list of 6 clients (I'm starting small just to test)
I have a name, DOB and address.
I am using a script to populate a drop down box which lists all names:
var textFields = ["Aname", "Bname", "Cname", "Dname", "Ename", "Fname"];
if (event.source!=null && textFields.indexOf(event.source.name)!=-1) {
var items = [""];
for (var i in textFields) {
items.push(this.getField(textFields).valueAsString);
}
this.getField("Dropdown1").setItems(items);
}
I have also created custom fields to add the name, DOB & address into one field. (AFull Details, BFull Details etc.) I am then trying to use this field in a drop down. It seems to work for 5 clients, but when I add the 6th, it doesn't refresh the drop down...
var textFields = ["AFull Details", "BFull Details", "CFull Details", "DFull Details", "EFull Details", "FFull Details"];
if (event.source!=null && textFields.indexOf(event.source.name)!=-1) {
var items = [""];
for (var i in textFields) {
items.push(this.getField(textFields).valueAsString);
}
this.getField("Dropdown2").setItems(items);
}
I have changed the formula many times requesting Aname, Bname up to F and it works fine. I have changed 1 at a time to show AFull Details, Bname etc which again works fine up to 5, but when I change the last one to show all 6 full details, my drop down still contains earlier data, even though I change all 6 fields each time to Test1, Test2 then next time Test01,. Test02 etc.
I need a maximum of 20 eventually, but am stuck getting past 5...
Can anyone help please??
