long list of data to auto populate on the base of drop down list
Hi,
I am creating an Adobe form in Adobe DC and I am trying to auto populate the fields on the base of drop down list. The problem is that drop down list is too big. I am trying to find efficient way to create a form. So as an example I have in list following entries, i have concatenate the fields by "--" in excel.
a is suppose to be drop down list and when selected, it should autopopulate respective b, c and d fields.
a--b--c--d
aa--bb--cc--dd
aaa--bbb--ccc--dd
and so on. I would like to have a, aa, aaa in the drop down list and b, bb, bbb in the corresponding field and same with c and d.
By googling I got following script.
this.getField("Dropdown1").setItems(this.getField("ListEntries").value.split(/[\"--"\r\n]+/g));
for the drop down list but I don;t know how to make it take only the first part of array. Could any one help me with it.
Thanks