Using Checkboxes to Create and Email List

S

scottthemoose

Trying to build Form in InfoPath that creates a 'email to' list based on
checkbox choices selected. In this example, an X would be the checked
checkboxm and the _ would be the unchecked one:

X (e-mail address removed)
X (e-mail address removed)
_ (e-mail address removed)
X (e-mail address removed)

So that when I choose 3 out of four, the three names get populated in the TO
field in the email, and the unchecked one does not. Looked for a form that
had something similar and could not find one.
 
S

S.Y.M. Wong-A-Ton

If you're using InfoPath 2003, you can create a multi-select list box as
described in this article:
http://blogs.msdn.com/infopath/archive/2004/04/01/106039.aspx
If you're using InfoPath 2007, you can use the new multi-select list box
control (see http://blogs.msdn.com/infopath/archive/2006/07/13/664811.aspx).

To generate a list of emails, you can use a technique similar to this one:
http://blogs.msdn.com/infopath/archive/2006/04/05/569338.aspx

and add an XPath filter to get only the selected email addresses like for
example:
eval(eval(person, 'concat(my:email[../my:selected = "true"], ";")'), "..")

where "selected" is an extra boolean node under "person" like in the first
article. This technique does have a bug in it that it will add the semi-colon
even if an email is not added. I think Outlook ignores multiple semi-colons
and will automatically replace them with one.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top