Multi select list boxes and automatically inserting repeating sections - InfoPath Dev
in

InfoPath Dev

Multi select list boxes and automatically inserting repeating sections

Last post 09-26-2009 07:58 PM by moggy. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-23-2009 04:07 PM

    • moggy
    • Top 150 Contributor
    • Joined on 06-22-2009
    • New Zealand
    • Posts 62

    Multi select list boxes and automatically inserting repeating sections

    I have the following xml file

    <?xml version="1.0" encoding="utf-8"?>
    <InterviewQuestions>
      <Competancy>
        <Description>Manual Labour</Description>
        <Question>
          <QDescription>Tell me about your cleaning abilities.</QDescription>
          <SubQuestion>
            <SQDescription>Can you use a mop?</SQDescription>
          </SubQuestion>
          <SubQuestion>
            <SQDescription>Can you use a scrubbing brush?</SQDescription>
          </SubQuestion>
          <SubQuestion>
            <SQDescription>What chemical would you use to clean a sink?</SQDescription>
          </SubQuestion>
        </Question>
      </Competancy>
      <Competancy>
        <Description>Santa Impersonations</Description>
        <Question>
          <QDescription>Tell me about what being a santa  means to you</QDescription>
          <SubQuestion>
            <SQDescription>Do you getonwith elves well?</SQDescription>
          </SubQuestion>
          <SubQuestion>
            <SQDescription>Can you use a scrubbing brush?</SQDescription>
          </SubQuestion>
          <SubQuestion>
            <SQDescription>How do you keep you sherry consumption under control?</SQDescription>
          </SubQuestion>
        </Question>
        <Question>
          <QDescription>How do you look after your reindeer?</QDescription>
          <SubQuestion>
            <SQDescription>Do you give them any mineral supplements?</SQDescription>
          </SubQuestion>
          <SubQuestion>
            <SQDescription>How often do you have to trim their hooves?</SQDescription>
          </SubQuestion>
          <SubQuestion>
            <SQDescription>Are you practicing any selective breeding to eliminate/increase red noses?</SQDescription>
          </SubQuestion>
        </Question>
      </Competancy>
    </InterviewQuestions>

     

    The idea is that the user picks 1 or more competancy from a list box i a repating section. I can populate the options from the xml file no problem.

    However after the select a competancy, I want a corresponding repeating section to appear with the list of questions (in either a multi selection list box or a series of check boxes, then for each question that they select the sub questions should be displayed (read only)

     

    I can easily get it so that selecting the competency, populating the questions list box, but I can't work out how to get the sub questions to show. I would just like them in a bulleted list as they will be automatically selected.

     

     

  • 09-26-2009 05:22 AM In reply to

    Re: Multi select list boxes and automatically inserting repeating sections

    Can you add a bulleted list bound to the sub questions in your secondary data source and filter based on the values selected for Questions?

    Hilary Stoupa

  • 09-26-2009 07:58 PM In reply to

    • moggy
    • Top 150 Contributor
    • Joined on 06-22-2009
    • New Zealand
    • Posts 62

    Re: Multi select list boxes and automatically inserting repeating sections

    I wanted a bulleted list as the users don't actualy select the final sub questions, but I can't see how you can apply a filter to lists. I didnt manage to get a mult select working, but, I don't want the users to have to click options. The final option will later be displayed on a print out view.

Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.