Skip navigation
Currently Being Moderated

Setting subject in submitForm function

Jun 25, 2012 10:44 AM

Hi,

 

LiveCycle's purpose-built submit buttons don't allow programming so I've made my own data submission button.

 

Here's the code on the button's click event:

 

var email = ************;

 

event.target.submitForm({

    cURL: email,

    cSubmitAs:"XML",

    cCharSet:"utf-8"

});

 

 

So it functions as I want it to except that it uses a default subject of the xml file name.  It's going to an email address, not a server, so for the purpose of possible debugging, I'd like to be able to have a dynamic subject field.  Using the event.target.mailForm function, you can use the parameter cSubject.

Any ideas?

 

Thanks!

 
Replies
  • Currently Being Moderated
    Jun 29, 2012 4:18 PM   in reply to davidcornett

    Hi,

     

    Have a look at the example here, which shows three approaches. The standard Submit by Email button, a Regular button with a submit type and a Regular button with a custom script.

     

    http://assure.ly/dYQFb4.

     

    Hope that helps,

     

    Niall

     

     

    Testing link...

     

    Message was edited by: Niall O\'Donovan

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points