Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / August 2007

Tip: Looking for answers? Try searching our database.

Pulling in Field Information

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tom - 01 Aug 2007 01:26 GMT
I am using a very basic button script to send the form directly in the email
versus sending it as an attachment.  Here is the simple code I'm using.

function CTRL8_5::OnClick()
{

        var oEnvelope = Application.ActiveWindow.MailEnvelope;
       
        oEnvelope.Subject = ("Test");
        oEnvelope.To = ("Test Name");
        oEnvelope.Visible = true;
   
}

My question is what the structure is for pulling in information from one of
the form fields to reference in this code.  For example I have a pulldown
menu called Name.  I want to pass that information from the form to this
script to fill in the oEnvelope.To portion.  In Access I would call the
function and include the fields i wanted to pass through but I'm unsure how
to do this in Infopath.

Also is there another oEnvelope function for controlling the CC and
Introduction Fields.

Thank You for any assistance offered.
K.Ramana Reddy(GGK Tech) - 01 Aug 2007 04:48 GMT
Hi,

Use the following code to get filed value in your form,

Vb Script:
Dim X
X = XDocument.DOM.selectSingleNode("Xpath of  field").text

JScript:
var X;
X = XDocument.DOM.selectSingleNode("Xpath of  field").text;

Signature

k.Ramana Reddy
http://www.GGKtech.com

> I am using a very basic button script to send the form directly in the email
> versus sending it as an attachment.  Here is the simple code I'm using.
[quoted text clipped - 21 lines]
>
> Thank You for any assistance offered.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.