Emailing Forms - InfoPath Dev
in

InfoPath Dev

Emailing Forms

Last post 04-12-2006 03:38 PM by jbrixey. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 04-12-2006 01:58 PM

    • jbrixey
    • Not Ranked
    • Joined on 04-12-2006
    • USA
    • Posts 2

    Emailing Forms

    Yes, I know that this is probably a beaten dead horse, but unfortunately, my searches through the forums have not yeilded the answer.

    I have an email submit button with a data connection set to the default name of Submit. When there is no code modification, it works fine and submits the email to the preconfigured email address specified in the wizard. When I open the on click event of the submit button and insert the following code

    function btnSubmit::OnClick(eventObj)
    {

    var objEmail = XDocument.DataAdapters("Submit");
    objEmail.Intro = XDocument.DOM.selectSingleNode("//my:emailbody").text;
    objEmail.Submit();

    }


    I get the error, object required in the objEmail.Intro line. The source of the emailbody text box is just a string.

    I am using JS as the language.
  • 04-12-2006 03:38 PM In reply to

    • jbrixey
    • Not Ranked
    • Joined on 04-12-2006
    • USA
    • Posts 2
    My Bad, My problem was the reference to my field was incorrect. Field name was EmailBody and I was putting in emailbody. Did not realize field references were case sensitive.
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.