This content has been marked as final.
Show 3 replies
-
1. Re: How to hide a field based on the value of a field in a different subform - null check doesn't work!
Magus069 May 9, 2014 8:31 AM (in response to JBIW31)Hi,
It depends, seems like there might be an error in your coding. Maybe an error in a Reference_Syntax or something like that...
Could you provide an image of your hierarchy + your snippet code so it will be easier to help you!
-
2. Re: How to hide a field based on the value of a field in a different subform - null check doesn't work!
Raffe May 26, 2014 1:02 PM (in response to JBIW31)Hi.
Try this in the originating sub form referring to the text field (X).
if (this.rawValue = 1)
{
X.presence = "visible";
}
else if (this.rawValue = null)
{
X.presence = "hidden";
}
-
3. Re: How to hide a field based on the value of a field in a different subform - null check doesn't work!
JBIW31 May 27, 2014 7:58 AM (in response to Raffe)Thanks for the suggestion! I did end up using similar code and it worked once I had set the variable correctly. Learned about a new function that allowed the field value to be set - it was not being set properly on the change event.
fieldname.rawValue = xfa.event.newText


