- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
Hi Niall,
Thank you!! You have solved my problem by making me look at this a different way. Your code works because I can only have one raw value. But I need the Neutral value to count as the box being checked and to show the previously hidden object. So I played around with it and this works for me:
if (eqc712.rawValue == 0) {
xfa.resolveNode("EQC712").presence="hidden";
}
else {
xfa.resolveNode("EQC712").presence="visible";
}
I have no idea why I have resolve node in there - I don't know what it does, a guy in my office told me to put it in and it works so . . . I use it.
I have another question that has been stumping me much worse though. Its slightly less important to my document but is confusing me much more.
I have a counter that counts each ticked checkbox, and for some reason I have a group of checkboxes that refuse to be counted. Here's a piece of code that works and one that doesn't.
if (xfa.resolveNode("ss.ssc1").rawValue==1|xfa.resolveNode("ss.ssc1").rawValue==2)
credits.rawValue=credits.rawValue+1;
if (xfa.resolveNode("id.idc11").rawValue==1|xfa.resolveNode("id.idc11").rawValue==2)
credits.rawValue=credits.rawValue+1;
Seriously confused by this, they look exactly the same. I have double checked names etc etc . . .
I tried this too but I know I have something wrong in here and can't find it.
if (form1.#subform[0].id.idc11.rawValue==1|form1.#subform[0].id.idc11.rawValue==2)
credits.rawValue=credits.rawValue+1;
Thanks for your help Niall, I had given up on using this document properly.
Views
Replies
0 Likes
Total Likes