Populate E-mail DDL based on other DDL - InfoPath Dev
in

InfoPath Dev

Populate E-mail DDL based on other DDL

Last post 11-15-2006 10:00 PM by Patrick Halstead. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 11-15-2006 10:17 AM

    Populate E-mail DDL based on other DDL

    I have a Drop Down List that has two categories: Category 1 and Category 2.

    I created two data connections, one to connect to Sharepoint Teamsite A's Contacts in, the other to connect to Sharepoint Teamsite B's Contacts. Both contact lists include first, last, full name and email addresses.

    Within InfoPath, would there be a way to create an 'if..then' statement to say if category = Category 1 then use Teamsite A's Contacts, if category = category 2, then use Teamsite B's Contacts? If so, where and how would I do this?

    The reason I need this is I created a submit button that emails based off of the Contacts so it would be really REALLY helpful for me to be able to use the category to generate the appropriate list of Contacts.

    Any help would be much appreciated!
    Thanks!
  • 11-15-2006 04:41 PM In reply to

    Re: Populate E-mail DDL based on other DDL

    Normally, to accomplish this if..then feature you would use filters. . . . Something like:

    give me all the contacts where the teamsite = selected category

    -or-

    SharePointContacts/TeamSite[. = SelectedCategory]/Contacts/Contact

    Obviously the XPath above would need to be modified to your particular schemas, but it should give you a rough idea.
  • 11-15-2006 10:00 PM In reply to

    Re: Populate E-mail DDL based on other DDL

    Hi KidThnkr1 and welcome,
    I see two duplicate posts from you. I'm guessing this was a mistake. If not, please don't duplicate post. I replied to the other one here:http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=3714
    Patrick Halstead
    Project Manager at Qdabra
Page 1 of 1 (3 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.