I know how to program a button to email a form to a predetermined
address. Is there a way to program a button so it will send some of
the data to one person and the rest of the data to another person.
Example: Separation Form. Several departments need to know that an
employee has left but only HR needs to know WHY. Can the form that
IT, Facilities and the Mailroom receive just show the basic info but
the form HR receives would show the confidential info? The
confidential info would be made up of option buttons and a comments
section. If this isn't possible can two buttons be used in one form
with the same concept. The first button would send certain sections
of the form and the other would send different sections.
RonL - 22 Feb 2008 19:12 GMT
Is it possible to send the email to departments a,b and c, change the
fields/sections to not display, and then send to HR ? all done in the on
button click code. (set an original option to False(by default) , send
email, set to option to True) so that when option is True then the sections
are hidden.
> I know how to program a button to email a form to a predetermined
> address. Is there a way to program a button so it will send some of
[quoted text clipped - 7 lines]
> with the same concept. The first button would send certain sections
> of the form and the other would send different sections.
Clay Fox - 22 Feb 2008 20:35 GMT
What Ron describes is one method but if you have confidential information you
are exposing it potentially. A user could view the attached XML as text and
see the contents even though within InfoPath they do not see the view.
I would suggest a backend database to secure the information. Then the form
can display what each user has access to or each function can have their own
form but the common information can be shared between the forms.

Signature
Clay Fox / Microsoft InfoPath MVP
www.InfoPathDev.com / The InfoPath Authority / Downloads, Samples, How-To,
Experts, Forum
> I know how to program a button to email a form to a predetermined
> address. Is there a way to program a button so it will send some of
[quoted text clipped - 7 lines]
> with the same concept. The first button would send certain sections
> of the form and the other would send different sections.