简体   繁体   中英

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? I have 3+ subforms that I need to be able to switch between based on a specific country. 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

you can achieve this by java-script.

on change - (JavaScript, client) event of drop-down you add script.

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";
}

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