Ok simply I want 1 text field labeled "Your email address". I also want 1 button that says "Send mail".
I want the user to be able to send me the PDF form and also send the copy to his email previously seen in 1 text field.
I also dont want to use local mail clients. Just want to upload the PDF to my server so the user comes, inputs and fires of the mail from there.
Im using Livecycle ES2.
Please help.
DARJE6666:
In order to bypass client-side e-mail software such as OUTLOOK, you will need to submit the PDF to a server-side script, such as PHP or ASP.net.
If you do not know how to program, and you are using Microsoft web servers, then check out www.pdfemail.net
PDFEmail.net generates ASP.net scripts and libraries you upload to your web server. It works with Acrobat and LiveCycle PDF forms.
PDFEmail.net can parse the submission data, and pull the e-mail address from the PDF form field value, and populate the "TO:" address in the message.
For an online demo:
Hi,
I believe you use LiveCycle Designer ES2, right?!
Then you can use a macro to create your mail script.
All you need is here.
http://thelivecycle.blogspot.de/2012/05/mailto-maker-marco-v1.html
Once installed, you can use the macro to easily create mailTo scripts in a regular button that can populate values from any form field.
Okay thanks but i dont have money for that.
Okay lets just say Im good with local mail clients than. How do i make my form in Livecycle put my email in TO: and client email in CC: ?
Once again just a simple text field for his/her mail and my SEND button with my mail already embbeded.
I'm a noob so ill need a really step by step guide like click here copy paste this and so on.
Thanks
OK,
step-by-step.
1. Create a button
2. Goto the tools menu > scripts > LCB_MailToMaker.js
3. The macro will launch a Flash dialog where you can edit your mail.
On the right side you'll see a dropdown list, that contains all form fields that can be used as a reference prefixed with a variable number in curly brackets.
4. Select the desired field name, than select the field you want to populate with the fields value and click the plus button.
5. Add some subject and mail body
6. Confirm with OK.
The macro now adds a complete mailTo script to your button's click event.
If the macro doesn't run because of you don't have flash player installed use this script.
It's the one the macro will create.
You will only have to modify the somExpression of var0.
var var0 = xfa.resolveNode("Form1.#subform.Textfield1").rawValue;
event.target.mailDoc({
bUI: false,
cTo: var0,
cCc: 'email4you@youraddress.org',
cBcc: '',
cSubject: 'Filled form',
cMsg: 'Here's my filled form.'
});
Ok here is what i do.
1. Throw in a button.
2. Throw in a text field with TextField1 binding name.
3. Then I go inside that code part for the button (whre you have to click CTRL) and I add the above code to the bottom.
It doesnt do anything when i click and put in the mail inside that text box.
Hi,
correct, that was my fault. ![]()
The script fails because of an unescaped ' character in cMsg.
Here's the corrected one.
var var0 = xfa.resolveNode("Form1.#subform.Textfield1").rawValue;
event.target.mailDoc({
bUI: false,
cTo: var0,
cCc: 'email4you@youraddress.org',
cBcc: '',
cSubject: 'Filled form',
cMsg: 'Here\'s my filled form.'
});
heres a problem signature if that helps
Problem signature:
Problem Event Name: AppHangB1
Application Name: FormDesigner.exe
Application Version: 9002.2245.2.0
Application Timestamp: 4c7fd50a
Hang Signature: fe29
Hang Type: 0
OS Version: 6.1.7601.2.1.0.256.1
Locale ID: 1050
Additional Hang Signature 1: fe29e1938e625e1e8716581d49df8560
Additional Hang Signature 2: 40f0
Additional Hang Signature 3: 40f0e24c27b527284dad81052793064c
Additional Hang Signature 4: fe29
Additional Hang Signature 5: fe29e1938e625e1e8716581d49df8560
Additional Hang Signature 6: 40f0
Additional Hang Signature 7: 40f0e24c27b527284dad81052793064c
I made a video with those instructions in mind. Doesnt work for me still.
http://www.youtube.com/watch?v=vwzNjbXRVx0
just click 720p its fuzzy on 480p
Yes,
the problem is you didn't modify the SOM expression for your text field.
If the form is build as the one in your video, than you have to change the line
var var0 = xfa.resolveNode("Form1.#subform.Textfield1").rawValue;
into
var var0 = xfa.resolveNode("form1.#subform.TextField1").rawValue;
Here's a good article that explains the basics of SOM expression.
http://www.assuredynamics.com/index.php/2011/05/som-expressions/
Ok it works partly now. It sends ok to the adress under cCc but fails for the adress i input into the text box.
the error message seems to add a capital S in front of every mail i put there and says that that mail doesnt exist.
example. i put in
| unicornsuicides@gmail.com |
and it gives me the error
Delivery to the following recipient failed permanently:
Just a possible hint of solution if you can help.
I think it is adding that capital S in front cause in that code it says cTo: 'darioyebote@gmail.com', and i found this on this url http://support.google.com/mail/bin/answer.py?hl=en&answer=6596
This error usually occurs when there are typos in the recipient's email address. Some common errors include the following:
So i dunno if you could code around to somehow encapsulate my email in something else that quotation marks.
Thanks
You can use a small JavaScript in the exit event of the text field which uses a regular expression to check the entered address.
if (!this.rawValue.match(/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/g)) {
xfa.host.messageBox("Invalid E-mail address!");
}
Yes, I use it in ES3, but it will also work with ES2.
All you need is FlashPlayer.
Here are some basic information about.
http://blogs.adobe.com/formfeed/2010/01/designer_es2_macros.html
North America
Europe, Middle East and Africa
Asia Pacific