title: How to hide/display a page in a PDF based on a check box
body: <p>I am creating an interactive PDF using Adobe Livecycle. My PDF has 4 pages and the last page is hidden.</p>
  
  <p>I want to be able to display this hidden page based on a check box. Whenever a user selects this checkbox the page has to be visible.</p>
  
  <p>I have used the action builder to change the presence of the last page to visible/hidden based on the checkbox. This was working fine until I added <code>baseProfile="interactiveForms"</code> to the template XML node in the XML Source. I had to add this tag in order to add custom javascript code to to the PDF. Without the <code>interactiveForms</code> attribute the action to hide/display the page works, but I am not able to add the custom javascript that I need to run on the PDF.</p>
  
  <p>Greatly appreciate any help!</p>