Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Unable to unhide subform in Adobe Form

$
0
0

Hello All,

Something that should be simple has turned into a bit of a trial. I have an Adobe form with three tables with different columns. Based on a variable passed to the form say, "number_of_tests" one of the tables should be visible.

 

This works fine when the subforms are set to "invisible" by default and then made "visible". However, it does not work when the default value is "hidden". Why does this matter? Well, the "invisible" element still affects the layout of the form so I need it "hidden" (exclude from layout). Any clue would be greatly appreciated.

 

Here is my sophomoric code and location.

 

data.#pageSet[0].Page1.NUMBER_OF_TESTS::initialize - (JavaScript, server)

if (this.resolveNode("$").rawValue == "03") {

  this.resolveNode("Page2.ItemDataHdrSubForm3").presence = "visible";

  this.resolveNode("hdrs.ItemDataHdrSubForm3").presence = "visible";

  this.resolveNode("itms.ItemDataSubForm3").presence = "visible";

}

if (this.resolveNode("$").rawValue == "04") {

  this.resolveNode("Page2.ItemDataHdrSubForm4").presence = "visible";

  this.resolveNode("hdrs.ItemDataHdrSubForm4").presence = "visible";

  this.resolveNode("itms.ItemDataSubForm4").presence = "visible";

}

 

Here is the structure of my elements.

 

MainSubForm is Flowed default to Visible.

SubHeaderSubForm is positioned default to Visible.

ItemDataHdrSubForm3 is flowed default hidden. (doesn't work, but does when default is "invisible")

ItemDataSubForm3 is flowed default hidden. (doesn't work, but does when default is "invisible")

ItemDataHdrSubForm4 is flowed default hidden. (doesn't work, but does when default is "invisible")

ItemDataSubForm4 is flowed default hidden. (doesn't work, but does when default is "invisible")

Capture.PNG

 

Again, thanks for any assistance.

 

Greg


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>