Quantcast
Channel: Adobe Community : Popular Discussions - JavaScript
Browsing all 12130 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

If/Else Javascript Request - Date Calculations

Hi Everyone, I am working on a Travel Authorization Request form. There is a section that asks for a departure date, return date, and total days. In the total days field, I have placed a script that...

View Article


Using Custom Calculation Script box in Acrobat Pro X

I would like to simply subtract several fields from one field and have the result show up in final/total field when a user clicks her mouse in the field. I have used the custom calculation script. What...

View Article


Adobe Acrobat X: Attachments and Extended Reader Functions...

All, after adding attachments (e.g. PDF documents) to a PDF document and saving the document with "Extended Reader Functions" an error is shown in the Java debugger window: SyntaxError: missing ) after...

View Article

Unterminated String Literal..?

I am receiving an error message "unterminated string literal" in my custom calculation script and not sure why or how to fix it.  There error seems to occur on one of the last two lines on the code...

View Article

JavaScript doesn't work in Acrobat?

I've been doing a lot of scripting in InDesign over the past few months, as well as a little Illustrator, and I've learned a heck of a lot about JavaScript and ExtendScript.  I even have a very solid...

View Article


accessing active directory

HI. I am trying to access Microsoft's active directory so that I can retrieve the user's login name and compare it to a database on my form. I am using Adobe Acrobat 8. I've read the section on...

View Article

Image may be NSFW.
Clik here to view.

How to create a date field that is fixed upon signing?

Hi, I have been creating a series of PDF forms on Adobe XI Pro that are designed to be filled in using Adobe Reader (hence are saved as Adobe Reader Extended). Once the form is complete there are...

View Article

Toggle visibility of a layer or group of layers without changing every layer

Hi,  I'm creating a set of layered PDF maps (in this case from AutoCAD but I use Illustrator and ArcGIS for the same task at other times). Anyway, the layers created in the PDF are named according to...

View Article


Javascript button fields

Hello, I am using Acrobat X Pro on windows for making forms. I have a form set up that auto fills the current date on certain fields upon page open. I also have a button that changes the date to the...

View Article


Get pdf creation by using pdf javascript

Hello all, Can I ask how can I get the pdf creation/ last modify date by using pdf javascript? Many ThanksSunny

View Article

Image may be NSFW.
Clik here to view.

Calculations Between Two Time Fields

Hello, I have a form with a Time Field for the start time, and a text field for the user to enter a duration (eg 00:30:00). There is another field for the End Time (which will have a calculation script...

View Article

Linking to Forms to other documents

I have a form that I need to link to the instructions in a different file.  The instructions manual contains instructions for multiple forms, and what we want to accomplish is that when the user select...

View Article

Custom Text Field in a Dymanic Stamp

Im creating a new dymanic custom stamp, but instead of the date/time, when inserted, I need to then manually enter text into the dymanic text field. How do I change the script in the dymanic feild of...

View Article


pdf javascript in mobile pdf reader

Hello all, I have embadded some javascript in my pdf and the javascript works in PC adobe reader. I find that the javascript does not work android adobe reader, can i ask how can I preview the pdf open...

View Article

Script to extract all A3 Landscape pages

Greetings, dear community!   Can you help me to find a template to a following script:Find and select all A3 Landscape pages in the current PDF document.Extract selected pages to a separate PDF...

View Article


RaiseError when doing a saveAs

Everything seemed to work fine in XP with Adobe 9 but now with Windows 7 things are breaking.  The button script is:var filePath = "/C/";var newFileName =...

View Article

Dynamic Stamp not pulling in Identity

Using Adobe Acrobate 10 Standard on a Windows 7 system I am creating a custom stamp.  I have gone in and copied the javascript from the Dynamic.pdf file located here C:\Program Files...

View Article


insertPage RaiseError: An incorrect structure was found in the PDF file

Hi, I am trying to build a button script that will create a new document, copy (insert) from the first page of the open document, save it, then close it.  I believe the part where it gets tricky -- and...

View Article

basic date validation

I want to validate the input of a date field.But i cannot us the standard build in function.My customer wants a custom error message when input is not a valid date.But i don't know how to do this.Can...

View Article

JavaScript Validation to Submit Form

Hi,How do you validate all the fields in JavaScript when the user clicks the Submit button so that if any required fields are empty or any field validation fails, nothing (submission, JavaScript code,...

View Article
Browsing all 12130 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>