Drop-down box values based on repeating field - InfoPath Dev
in

InfoPath Dev

Drop-down box values based on repeating field

Last post 03-12-2012 12:09 PM by erundz. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 03-10-2012 02:09 PM

    Drop-down box values based on repeating field

     Hi everybody, I have only been learning Infopath for a couple weeks now and I have what I hope is a newbie question that somebody can understand and explain to me easily.

    Say I have the groups Customer and Doctor (each customer has one or many doctors).  I want a drop-down box that will display the first doctor in the list after the query is run, but I want the list to display all of the other doctors so the user can select a different doctor to display on the form (for printing).  I have read some other posts but I since all I want to do is display the data (not submit), what I am looking for might work differently.  I am guessing it needs to be a secondary data source and bound to the doctors name attribute, but what else do I need to consider?  Does anybody have any advice for me to make this work the way I've described?

    Thanks!

  • 03-11-2012 09:29 PM In reply to

    Re: Drop-down box values based on repeating field

    The dropdown box you're describing could be bound to practically anywhere and work the way you want it to, as long as you bind it to a non-repeating field.  Since it doesn't sound like the selected value needs to be persisted from one submit to the next, creating a field in a secondary data source to bind it to would be the more natural choice, but using a field in the main data source would be simpler, so perhaps you should try that first, and consider moving it out to a secondary source as a next step.

    In order to have the first available value selected by default, just add an additional rule action to whatever rule set is performing the query, like this:

    Action: Set [Field bound to the DDL] = [Field used for the Values in the DDL]

    Jimmy Rishe / Software Developer / Microsoft MVP
    Qdabra Software
  • 03-12-2012 12:09 PM In reply to

    Re: Drop-down box values based on repeating field

    Ah, got it! Thanks for your help!
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.