Is it possible to generate a form that, upon hitting "submit", will generate
two e-mails. We need to create a form that will send information to our HR
and IT departments. Also, each recipient (HR and IT) will receive different
pieces of information from this form. How can these two items be
accomplished?
JerryTh [MSFT] - 20 Aug 2005 00:18 GMT
The easiest way (notice I didn't say prettiest), would be to insert a button.
Then assign rules to the button so that it switches to HRView and sends an
e-mail, then switches to ITView and sends another e-mail, and then switches
back to MainView.
And alternative would be to add another field called PrintView.
The button sets that field to HR or IT.
Then set fields with conditional formatting to hide if HR should not see, or
IT should not see.
Both of these require the user to clcik [Send] for each email.
The other, cleaner approach is to do the same thing (switch views) but run
it with script so that the user involvement is not required.

Signature
This posting is provided "AS IS" with no warranties, and confers no rights.
Sample code subject to http://www.microsoft.com/info/copyright.htm
Do not send email to this alias. It is for newsgroup only
> Is it possible to generate a form that, upon hitting "submit", will generate
> two e-mails. We need to create a form that will send information to our HR
> and IT departments. Also, each recipient (HR and IT) will receive different
> pieces of information from this form. How can these two items be
> accomplished?
agni - 20 Aug 2005 06:32 GMT
The best way is to write code in the button click event.
There you can change the values of email adapter and you send email one
after the other.
To send an email by code you can refer
http://www.infopathdev.com/forums/topic.asp?TOPIC_ID=711
> Is it possible to generate a form that, upon hitting "submit", will
> generate
[quoted text clipped - 4 lines]
> pieces of information from this form. How can these two items be
> accomplished?
QT.Nguynh@gmail.com - 01 Sep 2005 19:53 GMT
After I swiched to a different view and send an email. It seems that
the default view is always sent instead of the desired view. Did anyone
have this problem, or am i missing something from the email
submission's setup?
Please advise me!
Thanks very much