5 Replies Latest reply on Nov 14, 2009 2:51 PM by Rob in AZ

    Need help with a dynamic information gathering form

    Rob in AZ Level 1

      I found topics that explain how to display/hide sub-pages using a trigger field and a script, but these techniques create whitespace where there are hidden sub-pages in the form.  Is it possible to have the selected sub-pages flow together across multiple pages, without the whitespace?  I was thinking the first page would have a set of check-boxes that identify what information is needed in the form.  After clicking the appropriate check-boxes on the first page, a custom version of the form would be generated, with only the needed sub-pages displayed.  If this were a 1-page form, the prior examples would work. However, this is a multi-page form and I would prefer not to have blank sections throughout the form.  Any ideas?

       

      Thanks,

      Rob

        • 1. Re: Need help with a dynamic information gathering form
          pguerett Level 6

          I am not sure what you are referring to ...can you post some examples?

           

          Paul

          • 2. Re: Need help with a dynamic information gathering form
            Rob in AZ Level 1

            StateAssessmentDecisionRecord.pdf is an example that shows how clicking fields in the TAKS section hides/shows a sub-pages.  If you click TAKS and TAKS (Accommodated), but not Spanish TAKS, there is whitespace where Spanish TAKS is in the form, but not shown.

             

            dynamic_form_example.xdp is a mockup of what I need.  I haven't received the real content yet, but it should illustrate the concept.  On the first page, the Dr. would click the box next to each area needed in the form.  Clicking the Generate Form button would trigger an action to unhide or include content requested.  I only built checkboxes for the first few sections.  More are actually shown in the form.  Instead of whitespace for the sections not selected, like the StateAssessmentDeicsionRecord.pdf, I would like to have all the sections flow together without whitespace.

             

            I will eventually be given sections of information that need to be dynamically included.  For example, the Dr. may only be working on the neck, or on the neck, back, and thighs.  The Dr. would select the appropriate checkboxes on the first page and then only the specific sections would be included in the generated form.

             

            I hope this helps clarify.  Thanks for the quick response!

             

            Rob

            • 3. Re: Need help with a dynamic information gathering form
              pguerett Level 6

              To accomplish what you want you will have to make your Page1 a flowed subform. Before you do this take all of the rest of the fields on that page and wrap them in a positioned subform (I named the subform Header). You have set each of the subforms inside of the page1 subform by about .25 in. If you change the subform to flowed at this time everything will move to the left margin and there will be no white space in between subforms. To make up the white space between the header and the start of your subforms, expand the header subform to take up that additional space. Now you can change the Page subform to flowed. Everything will move left, then on the Page1 subform set a .25in margin on the Layout tab.

               

              I have modified your sample so you can follow....see attached.

               

              Paul

              • 4. Re: Need help with a dynamic information gathering form
                JennyAnnRowe

                Very cool solution, thanks!  I always learn so much from you.

                • 5. Re: Need help with a dynamic information gathering form
                  Rob in AZ Level 1

                  Thanks for the advice, your solution works great!  I have attached the working prototype.  I'm already getting enhancement requests, so I may have more questions.  Thanks again!  Rob