List Box vs Multiple Selection List Box - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

List Box vs Multiple Selection List Box

Last post 11-21-2012 08:00 AM by Olgierd. 6 replies.
Page 1 of 1 (7 items)
Sort Posts: Previous Next
  • 11-15-2012 02:15 AM

    List Box vs Multiple Selection List Box

    In my form users are making the decision whether the target audience is for individuals or groups. If individuals then I have a list box with countries popping up, where 1 country can be chosen, if groups - multiple selection list box with multiple countries possible. The issue is I cannot apply the validation rule, where field must be filled, as if 1 one is visible, the other one is hidden. I could not figure this one out, so I also have 2 seperate holding these fields Individual_Country and Group_Country. Is there a way to enforce possibility of choosing max one field on multiple selection list box. Any other ideas?

  • 11-19-2012 09:34 AM In reply to

    Re: List Box vs Multiple Selection List Box

    The two controls require different data types for fields that they must be bound to in order to function correctly.  I think you're stuck with the current design and have to maintain the single field and repeating field for the list box and MSLB controls.
    Anson Hidajat
    Qdabra® Software/ InfoPathDev.com
    The InfoPath Experts – Streamline data gathering to turn process into knowledge.™

  • 11-20-2012 08:19 AM In reply to

    Re: List Box vs Multiple Selection List Box

    My example


  • 11-20-2012 03:07 PM In reply to

    Re: List Box vs Multiple Selection List Box

    Ah, I understand now - validation rules aren't available for repeating fields! I'm attaching a form with a bit of a work around - save it locally, right click & select design, from there you can look at the logic, preview, etc.
    Hilary Stoupa

  • 11-21-2012 07:48 AM In reply to

    Re: List Box vs Multiple Selection List Box

    Hi Hilary,

    I really liked your solution, I will implement a similar one in my form. One last question:)  I have a repeating table called Retention Payments. This consists of 8 fields, where one is called payment description e.g Payment 1 out of 1, Payment 1 out of 2, Payment 2 out of 2, Payment 1 out of 3, Payment 2 out of 3, Payment 3 out of 3 (this is all possibilities listed). Is there a possibility to embedd following scenario: Have a list of payment descriptions: 1 payment, 2 payments, 3 payments and depending on what was chosen generate either just one row (1 payment), 2 rows (2 payments) or 3 rows - depending on what was chosen - in the repeating table? I am not a programmer, so I am able for solutions that can be utilized by regular users just like me in the browser form:) Any ideas?

  • 11-21-2012 07:51 AM In reply to

    Re: List Box vs Multiple Selection List Box

    Well - it takes custom code (or qRules) to add rows to a repeating table using code.

    However, you could include a number of rows by default and based on the user's selection determine how many to display. Look under the Data tab in the ribbon and on the left you'll see a button for Defaults. You can insert multiple instances of a repeating node - so you could always have 3 and then decide how many to display based on the user's selection. Make sense?

    Hilary Stoupa

  • 11-21-2012 08:00 AM In reply to

    Re: List Box vs Multiple Selection List Box

    It makes sense:) Thank you!

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