- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi,
I will try and work through it with you. A few observations:
- I don't think the first if statement will work, as the checkbox can only have two values "1" or "2" (if this is what you have set the checkbox binding to). The checkbox can only have two states (on or off) and the subform can only have two states (visible or invisible/hidden). Try the following in either the click event or the exit event of the checkbox:
if (this.rawValue == 1)
{
xfa.resolveNode("EQC812").presence = "visible";
}
else
{
xfa.resolveNode("EQC812").presence = "hidden";
}
- I am not sure why you are resolving the node. I would be inclined to reference the object directly. form1.page1.EQC812.presence etc.
- I am not familar with display (I am not sure if it is XFA Javascript). using the presence works in XFA so I would stick with that.
- Also hidden = true is unlikely to work.
This should work. Good luck,
Niall
Views
Replies
0 Likes
Total Likes