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.
Solved! Go to Solution.
Views
Replies
Total Likes
Ok,
1. Create a button and select it
2. Open the script editor (on top of the design view) (ctrl + shift + F5)
3. Select the click event and make sure the language is set to "JavaScript".
4. Paste the script above
Views
Replies
Total Likes
1) Make the email address a mandatory field
2) Put a submit button on the form that is pointing to your LiveCycle application on the server
3) On the server do the process form submission
4) The next step in the process would be to use the email service to send it to yourself
Views
Replies
Total Likes
Er thanks but I'm a total noob. Can you explain this step by step by step
How do you mean my LiveCycle app? Whats that?
Views
Replies
Total Likes
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
Views
Replies
Total Likes
Thanks I installed it but dont get it how to activate it while inside livecycle.
Views
Replies
Total Likes
I see i have to select a button and then go to tools>scripts>lcbmailtomaker.js but nothing happens.
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
You need FlashPlayer to run the macro.
Views
Replies
Total Likes
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.'
});
Views
Replies
Total Likes
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.
Views
Replies
Total Likes
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.'
});
Views
Replies
Total Likes
I fixed that problem in the macro too.
Views
Replies
Total Likes
ok now that plugin works and pops up but it freezes my livecycle
Views
Replies
Total Likes
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
Views
Replies
Total Likes
AppHangB1 is a Windows releated problem.
Maybe you use a virus scanner or so that causes the problem.
Views
Replies
Total Likes
Hm nope that didnt work. Quit Kaspersky but nothing. Can you guide me step by step with that code snippet you've put above. What to put and where to copy paste that. Thanks
Views
Replies
Total Likes
Ok,
1. Create a button and select it
2. Open the script editor (on top of the design view) (ctrl + shift + F5)
3. Select the click event and make sure the language is set to "JavaScript".
4. Paste the script above
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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:
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies