Hi All, appreciate this is an old thread - but seemed a suitable place to post.
Firslty, I am an infopath novice, and cannot code.
I'm using Infopath 2007
I am trying to achieve similar to this. Difference being my multiple selection list is populated from a SharePoint list.
The multiple selection list pulls a list of countries. These countries are associated with email addresses.
What I want to achieve:
When I select a country in the list, the associated email addresses appear, concatentated, in the text box so that I can then send an email to the recipients.
I've had a look at the example solution above, but can't work out how to modify this correctly. What I did is change the list box properties to pull from my secondary source, and then tweaked the expression box formua to:
eval(eval(@Approver, 'concat(., substring(";", 1, string-length(.)), " ")'), "..")
But it's not working - all email address are displayed in the expression box, independentl of whether or not the assosiated country is 'checked'
My secondary source looks like:

And the resulting frm looks like:

Any pointers please?
Many Thanks!