Expand my Community achievements bar.

Dive into Adobe Summit 2024! Explore curated list of AEM sessions & labs, register, connect with experts, ask questions, engage, and share insights. Don't miss the excitement.

Setting subject in submitForm function

Avatar

Level 4

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!

1 Reply

Avatar

Level 10

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