We are creating a form which we would like end-users to be able to fill out in Reader, save, and distribute to others via email. However, we've found that those opening the pdf on iPhone cannot view the text fields. We tried adding a flattenPages javascript to a hidden button, but it won't work in Reader. We're not very versed in javascript but are willing to learn to make this work. Thanks!
Solution
What's needed is a PDF viewer on the iPhone that supports forms.
When a PDF is opened in a browser, it cannot communicate with the web page that hosts it.
Solution
To pass information, we need to add what is called a Form Bridge, which presents an API to JavaScripts in the browser, and add to it our own functions. We then need to script the host page of the PDF container (which loads the Reader or Acrobat browser plugin) so that it pushes the data to the form. The result object of this operation allows us also to get data back from the form in the web page.
I am trying to make a form on which you can click a yes/no button and if you click the yes button, the email text field will be a required field, whereas the no answer would not require you to fill out the email address option. Thanks
Solution
Yes, you can accomplish this task without a script.
The standard "Email Submit" button in LiveCycle Designer only submits data as XML. And of course many users would like to submit the entire PDF, and modify other submission options.
Solution
There are at least 3 different ways to perform a submit action on a LiveCycle form. The Email Submit button is probably the worst, but the XML for this button can be easily modified so that it sends the entire PDF. A better solution is to use a regular form button. It's not widely known, but the regular button provides a greater range of submit options than the email button. And for the greatest flexibility the submit can be performed with JavaScript.
You want to print a PDF file directly from AIR without displaying it to the user and using your own custom button (not the default PDF control bar).
Solution
Open the PDF document you want to print in Adobe Acrobat Pro. Add the JavaScript code to your document and save it. Create an HTML page that contains a JavaScript function and embed the PDF document. In your Flash (or Flex) file add a button that prompts the user to print the document. Add the ActionScript 3.0 code that communicates with the HTML page. Publish your AIR file (making sure you include the HTML and PDF files). Test your AIR app.
Setting a form field to “Required” in the “General Properties” tab forces the user to fill in the selected form field. But there are cases when you need the user to fill out a particular field before moving on to the rest of the form. You could use JavaScript to dynamically enable or disable parts of the form but that can be cumbersome to keep track of.
The ideal situation would be to, where appropriate, force the user to enter data into a required field before moving to another field.
Solution
Add the following code to the “On Blur” action of the field you want to be required.
After you develop a form in LiveCycle, the users can have very different experiences with the form depending on the software they are using and if / how the form has been Reader Enabled. The various options that are available or disabled can be confusing.
Solution
This PDF sets out the four options that a developer should consider before you deploy the form. In essence you are looking at the user and the likelihood that they only have Reader and not the full Acrobat. If this is the case then they may not be able to use all of the features that you built into the form.
I'm trying to add script to a button in an interactive PDF that will print a page range but the scripts I've found only open a print dialog box that still requires the user to specify the page range. I found this script below on the Adobe site, but it doesn't work, the document prints all pages.
this.print({
bUI: false,
bSilent: true,
bShrinkToFit: true,
nStart: 1,
nEnd: 10
});
Help? Thanks!
Solution
If your document have 10 pages, to print from page 2 to 5 use the command as this.print({ bUI: false, bSilent: true, bShrinkToFit: true, nStart: 1, nEnd: 4 })
This site is produced in partnership with O'Reilly.