[Thread Edited By Adobe]
/*Don’t forget to meet and greet your fellow peers virtually by telling them about yourself here.
Go ahead and to it now: https://adobe.ly/3eDnB4v */
Actual Question:
Solved! Go to Solution.
You have the script set for FormCalc but that script is Javascript. In the script editor change the language dropdown (right hand side) to Javascript.
Paul
I can open your attachment with the examples, however when I click on the Acroform example, it does not do anything. Maybe it is not supposed to open. If that is the case, I need to know how to get this function to work.
Thanks for your help.
Aaron
Views
Replies
Total Likes
Are you using Reader or Acrobat? Reader will not allow you to send a PDF doc through mail without Reader Extending. See the notes at the sample form.
Paul
Views
Replies
Total Likes
I have Acrobat 9.0 installed and am using the Adobe LiveCycle to create my form. The form attached shows the field I want to attach to the subject line in an email when it is submitted.
Thanks for your help. I am very new with Adobe LiveCycle.
Aaron
Views
Replies
Total Likes
I have modified your sample. The actual button that does the email cannnot have code on it so we use another button (Real Email) and make it invisible once you get this to work. Then the button that you have has the code on it. The 1st line will set the submit URL for the hidden button and the 2nd line will click the hidden button.
Paul
Views
Replies
Total Likes
Thanks Paul. However I am unable to open the PDF. It says QUEUED next to it.
Views
Replies
Total Likes
The site will scan any new file for viruses (thats what the queued means). When it is done then it will be OK to download. Keep checking I have seen this take 2 minutes to a couple of hours.
Paul
Views
Replies
Total Likes
I have the PDF now. Do I need to change any of the coding do get it to work? When I hit the submit button it brings up a dialog box asking if I use a local email (i.e Outlook) or an Internet Service. When I click the local email it does not do anything.
Thanks,
Aaron
Views
Replies
Total Likes
If the dialog comes up that means the call to the email client is being made. Which email client do you use? Something (like virus scanner) maybe blocking programatic access to the email client.
Paul
Views
Replies
Total Likes
We us Microsoft Outlook.
Views
Replies
Total Likes
That’s what I use .....there must e something blocking the access .....do you have a virus scan on your machine?
Paul
Views
Replies
Total Likes
Yes. We have a organizational IT department. I can call them and ask if our viris scan is blocking this from working. Anything else I should tell them?
Views
Replies
Total Likes
Try it in a different machine to see if it is just your machine or if it is something that they block.
Paul
Views
Replies
Total Likes
Is it possible to use PDF as the "Submit as" type? My button doesn't appear to do anything when selecting PDF as the type. Setting it to XML or XDP the dialog box pops right up when clicking the submit button. I've even tried your untitled1_pauls.pdf file.
Thanks.
Figured it out. Opened the form outside Livecycle and it works. Just didn't work in "Prevew PDF" inside livecycle.
Views
Replies
Total Likes
I have attached the actual document I am working on for you to look at. When I click submit it gives me the message: couldn't post data to '.
Thanks,
Aaron
Views
Replies
Total Likes
Two issues .....you have the language set as FormCalc but the code is javascript. Change the language to Javascript (top right hand corner of the script editor) and you have the code set to run at server and not at client. Set it to client ....right beside the language selection in th etext editor.
Paul
Views
Replies
Total Likes
Paul, these examples are great. How do you get them to check the required fields as the regular submit buttons do? Thank you.
Views
Replies
Total Likes
All submit buttons will run validations (including required fields) before the submit operation is performed. It is a feature of the submit button.
Paul
Views
Replies
Total Likes
Paul,
I added a required field to your form to make sure it isn't my form doing something wacky.
The only buttons on your form that checks the field (I get a message when empty) is the first two buttons - they are actually submit buttons. I think the other buttons aren't true submit buttons, so they don't validate.
Is there a way to get them to validate? Thanks.
Views
Replies
Total Likes
Now I understand what you mean .....if you are using a true submit button then the validations will run automatically. If you are using a button for programming and that is calling the submit button then you will have to fire the validations yourself. The command to do this is:
if
(form1.execValidate()){
SubmitButtonName.execEvent("click")
}
else {
app.alert("You have validation errors...");
}
where form1 is the root node of your form. If the validations run and there are no errors then it will return a true value and the submitbutton will be pressed. If there are errors then the message box will appear. and the submit will not occur.
Hope that helps
Paul
Views
Replies
Total Likes
Paul,
Where do I put this? I tried it on the button itself, and I get the error window, but it still submits.
Also, will it highlight the validation errors? It doesn't when I place the script on the button itself.
Views
Replies
Total Likes
You put it on the click event of the fake button ......if there are validation errors the messages will pop up.
If it is submitting anyways then you must have the command to execute the real submit button outside of the if statement.
Paul
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies