Iterating through a Dropdownlist and comparing each item to a string value - InfoPath Dev
in

InfoPath Dev

Use our Google Custom Search for best site search results.

Iterating through a Dropdownlist and comparing each item to a string value

Last post 09-27-2008 06:47 AM by srivoleti_95. 2 replies.
Page 1 of 1 (3 items)
Sort Posts: Previous Next
  • 09-23-2008 05:36 AM

    Iterating through a Dropdownlist and comparing each item to a string value

    Hi All, I have a dropdownlist which is populating email id's from a sharepoint list using the Out of Box feature of Infopath. In addition to this I have a text field where I manually enter another email id. I want to compare this email id with items existing in the dropdownlist.

    I have to loop through the dropdown list items and compare it to the text field value.

    Can anyone help me by suggesting how to do it?

    Thanks

    Regards

    Sridhar

    Filed under: ,
  • 09-24-2008 05:53 AM In reply to

    Re: Iterating through a Dropdownlist and comparing each item to a string value

    This looping is done for you.

    If you have a secondary data source with the Sharepoint list.

    Add a rule to the email entry field. Make the condition emailentryfield = email in SP list.  Then have the action be whatever you want, message box or whatever.

    When InfoPath does the check it actually checks each value in the repeating nodes and if any or more match it will return true, if no matches false.

    You should be able to test this and gain more understanding.

  • 09-27-2008 06:47 AM In reply to

    Re: Iterating through a Dropdownlist and comparing each item to a string value

    Thanks a lot for this information. But can we do this looping with the 'Person and Groups'  in Sharepoint?

     

    Thanks in advance

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