Expand my Community achievements bar.

SOLVED

Can I modify the default text in an email submission?

Avatar

Level 2

When I press the "submit email" button on my form, it opens Lotus Notes (yes, gag, corporate decision) and appends the XML file to an email that states:

"The attached file contains data that was entered into a form. It is not the form itself.

The recipient of this data file should save it locally with a unique name. Adobe Acrobat Professional 7 or later can process this data by importing it back into the blank form or creating a spreadsheet from several data files. See Help in Adobe Acrobat Professional 7 or later for more details."

Can I modify this text somehow??

And, yes, I'm a total newbie to LiveCycle ES forms...

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

Not that I am aware of

Paul

View solution in original post

2 Replies

Avatar

Correct answer by
Former Community Member

Not that I am aware of

Paul

Avatar

Level 1

We ran into the same issue so we chose to create our own email submit button. We even allowed our users to enter their email, subject line and body using response boxes. We used the standard button and added the following Javascript on the click event.

var mail;

var vAddress = xfa.host.response ("Please enter the email address","EMAIL RECEIPIENT","firstname.lastname@address.com",0);

var vSubject = xfa.host.response ("Enter subject line","WHAT IS EMAIL ABOUT","Here is the file you wanted",0);

var vBody = xfa.host.response ("Enter body of email","Details", "Here is the file you requested. Thanks for your time",0);

if (vAddress == 0 || vSubject == 0)

{

xfa.host.messageBox ("Email Cancelled","This file will not be emailed",0,0);

}

else

{

mail = "mailto: " + vAddress + "?subject=" + vSubject + "&body=" + vBody;

event.target.submitForm({

cURL: mail,

bEmpty: true,

cSubmitAs: "XDP",

cCharset: "utf-8"

});

}

If you want the body of the email to be blank just remove:  + "&body=" + vBody

Hope that helps

The following has evaluated to null or missing: ==> liqladmin("SELECT id, value FROM metrics WHERE id = 'net_accepted_solutions' and user.id = '${acceptedAnswer.author.id}'").data.items [in template "analytics-container" at line 83, column 41] ---- Tip: It's the step after the last dot that caused this error, not those before it. ---- Tip: If the failing expression is known to be legally refer to something that's sometimes null or missing, either specify a default value like myOptionalVar!myDefault, or use <#if myOptionalVar??>when-present<#else>when-missing. (These only cover the last step of the expression; to cover the whole expression, use parenthesis: (myOptionalVar.foo)!myDefault, (myOptionalVar.foo)?? ---- ---- FTL stack trace ("~" means nesting-related): - Failed at: #assign answerAuthorNetSolutions = li... [in template "analytics-container" at line 83, column 5] ----