简体   繁体   中英

Adobe LiveCycle populate drowndown from text field value

Does anyone know how to populate a dropdown list from a text field with comma-separated data? (using javascript or itext java) iText claims that their apt can not do this. I have seen people talk about using javascript but they do not tell you how to do it.

I know this can be done via a web service and an outside XML file but the customer does not wish to allow for those options

Can someone point me in the right direction?

Put this code in dropdown list initialize event. Remember to replace TextField1 with a proper name.

var arr = TextField1.rawValue.split(",");
for (var i=0;i<arr.length;i++){
    this.addItem(arr[i]);
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM