[英]Adobe LiveCycle Designer: Hide/Show Multiple Subforms via Drop Down List
Good afternoon, 下午好,
Quick question here. 在这里快速提问。 Could someone show me the code needed to hide / show subforms in Adobe LiveCycle Desier ES 8.2?
有人可以告诉我在Adobe LiveCycle Desier ES 8.2中隐藏/显示子表单所需的代码吗? I have 3+ subforms that I need to be able to switch between based on a specific country.
我有3个以上的子表单,需要能够根据特定国家/地区进行切换。 I'd really appreciate the help.
我非常感谢您的帮助。 Thank you.
谢谢。
Also, I've been able to get it to work between two selections but now everytime I try to build a form I can't even select an item from the drop down list. 另外,我已经能够使它在两个选择之间起作用,但是现在每次尝试构建表单时,我什至都无法从下拉列表中选择一个项目。
Xeverus Xeverus
you can achieve this by java-script. 您可以通过Java脚本来实现。
on change - (JavaScript, client)
event of drop-down you add script. change - (JavaScript, client)
添加脚本的change - (JavaScript, client)
下拉事件。
subform1.presence = "hidden";
subform2.presence = "hidden";
var order= xfa.resolveNode("form1.#subform[0].typeOfIncidentDdl").rawValue;
if (order == 1) {
subform1.presence = "visible";
}
if(order ==2){
subform2.presence = "visible";
}
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.