简体   繁体   English

在Adobe LiveCycle中使用文本框的所有实例填充下拉列表

[英]Populating a Dropdown with all instances of a text box in Adobe LiveCycle

Hello and thank you for taking the time to read this. 您好,感谢您抽出宝贵的时间阅读本文。 I'm creating a PDF form in Adobe LiveCycle and I'm trying to populate a drop-down box with all instances of a text field called _KeyPeople.txtInitials. 我正在Adobe LiveCycle中创建PDF表单,并且试图用一个名为_KeyPeople.txtInitials的文本字段的所有实例填充一个下拉框。 This field could have up to 10 instances. 该字段最多可以包含10个实例。 I've been bouncing around Adobe website and forms for quite some time now and no luck. 我已经在Adobe网站和表单上弹跳了一段时间了,没有运气。

Please tell me if I'm mistaken, but my thought is every time they change an instance of this text field it will clear this dropdown and repopulate the list box please. 请告诉我是否输入错,但是我的想法是,每当他们更改此文本字段的实例时,它都会清除此下拉列表并重新填充列表框。

Thank you for all the help 谢谢你的帮助

You can use JavaScript. 您可以使用JavaScript。 On change or exit event of you text field you can add something like: 在您的文本字段发生更改或退出事件时,您可以添加以下内容:

DropDownList1.clearItems();
DropDownList1.addItem(TextField1.rawValue);
DropDownList1.rawValue = TextField1.rawValue;

For more Adobe LiveCycle JavaScript samples see here 有关更多Adobe LiveCycle JavaScript示例,请参见此处

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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