Expand my Community achievements bar.

Don’t miss the AEM Skill Exchange in SF on Nov 14—hear from industry leaders, learn best practices, and enhance your AEM strategy with practical tips.
SOLVED

Need Help: Submit form through email

Avatar

Level 10

I need to submit my form to an email address on single click of a button.

The submit type can be either XML or PDF. But i should neither get any warning nor it should open the Email Client.

And everything should happen within Adobe Reader 9.

Is this possible?

Thanks in Advance,

Nith

1 Accepted Solution

Avatar

Correct answer by
Former Community Member

For a submission there will be no warnings assuming that you have no validations or mandatory fields.

Paul

View solution in original post

9 Replies

Avatar

Former Community Member

Nope ....you must interact with the mail dialog now ....stops the ability to have a PDF become a spam generator. Your other option is to submit to a server and have a server program do the email on your behalf.

Paul

Avatar

Level 10

Thanks Paul,

In my case, it is not necessary to send email; rather I just want to capture the data from the form and save it in database. So if I could submit the form to a server program which is sufficient. But even for this I should not get any warnings.. is this possible?

Thanks & Regards,

Nith

Avatar

Correct answer by
Former Community Member

For a submission there will be no warnings assuming that you have no validations or mandatory fields.

Paul

Avatar

Level 10

That’s great..

Thanks Paul.

Thanks & Regards,

Nith

Avatar

Level 10

This works without any issue.

But now, i don't want the user to submit the same form again and again. Any way to prevent this?

I tried to set a flag in a hidden text field. But the data din't get saved.

Then i tried to Reader Extend the form, but still i could not.

Any way to do this Paul?

Thanks,

Nith

Avatar

Former Community Member

You coudl disable the submit button on the post submit event.

Paul

Avatar

Level 4

Hi Nith,

I saw this question and was interested in what sort of database setup you've got etc. Im a bit new and was just starting to explore how or if you could establish a database to take and store  the information directly from the forms

I know this is a bit off topic.... but any pointers would be appreciated. I have CS4 master suite (no other livecycle products or budget for them though) and Office 2007.  

I had been using a custom xml parser to pull the info and put it into target files but this has no storage/reuse potential and is getting real "clunky" so im keen to learn about databases and livecycle.  

cheers

Avatar

Level 10

Once if form is closed and re-opened again, the submit button is restored to enable state.

This is where I got stuck.

Thanks & Regards,

Nith

Avatar

Level 10

hi legallogic,

It works for me without livecycle suite, but we need a LivceCycle Designer to design the form.

In my case, i have designed a user acceptance form which will be sent to a customer for feedback. The customer can fill the form and click submit.

The form will be posted to a .net web page (as url encoded data).

The c# code fetchs the information from the Requester object and save them in a SQL Server 2005 database.

Thanks,

Nith

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] ----