7 Replies Latest reply on Aug 23, 2017 12:31 AM by try67

    Show or hide pdf form pages based on user selection

    calvins61590516 Level 1

      I have designed a pdf form to be used as a questionnaire however it is extremely long and comprehensive and it is not always necessary for a user to fill in the complete document.

       

      On the first page of the document I have a list of the different sections of the questionnaire and then if the user checks the checkbox of the sections, then only the pages of the document of those sections gets displayed and the ones that don't get selected, the relevant pages stay hidden.

       

      From what I have read, I will need to convert the pages to a template (Which I have figured out that I do under the organize pages tool) and then under the checkbox properties I will need to run a javascript under the actions tab to show or hide the relevant pages.

       

      My problem is I have no idea how to write javascripts. Does anyone have a line of code that I could copy into my document and substitute the page numbers (or whatever the case may be) which would give me the desired action on the document? I can't imagine that it is very complicated javascript, I just have no idea how to write it.

       

      Or, if there is another way of setting up this document the way I want to, any help would really be appreciated.