简体   繁体   English

Adobe LiveCycle从文本字段值填充淹没

[英]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. (使用javascript或itext java)iText声称其apt无法做到这一点。 I have seen people talk about using javascript but they do not tell you how to do it. 我见过人们谈论使用javascript,但是他们没有告诉您如何使用javascript。

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 我知道可以通过网络服务和外部XML文件来完成此操作,但是客户不希望使用这些选项

Can someone point me in the right direction? 有人可以指出我正确的方向吗?

Put this code in dropdown list initialize event. 将此代码放在下拉列表初始化事件中。 Remember to replace TextField1 with a proper name. 请记住用适当的名称替换TextField1。

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

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

相关问题 如何在adobe liveCycle形式中将可增长的文本字段限制为5行 - how to restrict growable text field upto 5 line in adobe liveCycle form Adobe LiveCycle设计器 - 表单脚本 - 将字段从可选字段更改为必需字段 - Adobe LiveCycle designer - form scripting - changing the field from optional to required 在LiveCycle Designer中从数组填充表 - Populate table from array in LiveCycle Designer 如何从LiveCycle的下拉列表中的一个子窗体中的数据填充文本字段到另一个子窗体 - How to populate text fields with data in one subform to another subform from a dropdown list in LiveCycle 在Adobe LiveCycle中使用文本框的所有实例填充下拉列表 - Populating a Dropdown with all instances of a text box in Adobe LiveCycle javascript,使用从值输入文本字段的数组动态填充下拉列表 - javascript to dynamically populate dropdown with an array from value typed into text field 从Adobe LiveCycle中的字符串中删除第一个逗号(,)之后的所有内容 - Remove everything after first commas (,) from string In Adobe LiveCycle Adobe Livecycle cacluations和if语句 - Adobe Livecycle cacluations and if statements 传真PDF Adob​​e Livecycle - Fax PDF Adobe Livecycle Adobe LiveCycle打印到信封 - Adobe LiveCycle Print to Envelope
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM