title: How to show/hide a page of a PDF Form by checking or unchecking a check box?
body: <p>I have a form that I am trying to use page two as a continuation page that will only be shown when a user checks a box. I am using Adobe Acrobat DC cloud and I tried the following code.</p>
  
  <pre><code>if (this.rawValue == 0||this.rawValue ==""){
      xfa.resolveNode("Page2").presence = "hidden";
  } 
  else{
      xfa.resolveNode("Page2").presence = "visible";
  }
  </code></pre>
  
  <p>However every time I try this or a variation of this code the debugger says: </p>
  
  <blockquote>
    <p>ReferenceError: xfa is not defined 4:AcroForm:ExtensionYes:Annot1:MouseUp:Action1" is there a step I am missing or can someone recommend a better way to accomplish this?</p>
  </blockquote>