Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Setting subject in submitForm function

Avatar

Avatar
Validate 10
Level 2
davidcornett
Level 2

Like

1 like

Total Posts

86 posts

Correct Reply

6 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 5
Affirm 3
View profile

Avatar
Validate 10
Level 2
davidcornett
Level 2

Like

1 like

Total Posts

86 posts

Correct Reply

6 solutions
Top badges earned
Validate 10
Validate 1
Boost 1
Affirm 5
Affirm 3
View profile
davidcornett
Level 2

25-06-2012

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!

Accepted Solutions (0)

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
Level 10
Niall_O_Donovan
Level 10

Likes

646 likes

Total Posts

4,352 posts

Correct Reply

786 solutions
Top badges earned
Validate 1
Boost 500
Boost 50
Boost 5
Boost 3
View profile

Avatar
Validate 1
Level 10
Niall_O_Donovan
Level 10

Likes

646 likes

Total Posts

4,352 posts

Correct Reply

786 solutions
Top badges earned
Validate 1
Boost 500
Boost 50
Boost 5
Boost 3
View profile
Niall_O_Donovan
Level 10

25-06-2012

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