Questions
Recently active
I wrote a Javascript in Acrobat for a form that I'm working on. The result could be either a positive number or a negative number that populates as my answer. I30 is supposed to yield the difference between I28 less I29. If I28 populates a number $1,000 and nothing shows in I29 then the result in I30 would be $1,000. This is correct. If nothing shows in I28 and $1,000 populates in I29 then I30 is supposed to show as (1,000) because I28 less I29 would equal (1,000). This result is not showing up. I cannot figure out why. I'm wondering if my validation script is the issue. I've included this below the script. Any suggestions? Thank you so much for any input. (Note: I am learning and trying to figure out how to write this code)var theField = this.getField("l28");var theValue = theField.value;var theField2 = this.getField("l29");var theValue2 = theField2.value;if (+theValue - +theValue2 > -10000000000.01) { &nb
I have an array of information I have collected from radio buttons. I need to know when they chose No to a certain question. Right now I have an app alert displaying the no's for the user. Now I need to copy that information into a Word/Excel document. I need to know the code to copy the array to the clipboard. Also, I named my radio buttons 1, 2, 3 etc. Here is my current code. I'm not sure where the copy code would go:var questions = ['Question 1: Do you smoke?','Question 2: Do you drink?']//I had 69 questions total that I added to the above array// the number of radio buttons you have in the pdfvar question = 79;//question starts at checkbox 5. I made the mistake of taking out questions so my radio button started at 5.var counter = 5; var myArray = [];var arraycounter = 0;for (; counter < question; counter++) {if (getField(counter).value=="No") {myArray[arraycounter] = questions[counter-5];//variable for question stringarraycounter ++;}}app.alert('These questions were answered no
Hi, I have two fields linked together in a pdf, so that the text flows from one line to the next... using this code:// Move to next field when this one is fullvar t=this.getField ("strongpoints1"); if (event.fieldFull) { getField("strongpoints2").setFocus();}Can anyone direct me to a coding solution that allows me to backspace from the second field back through the first field? Right now, I have to click each field individually to backspace the content on that line. But I would like it to automatically backspace up through the previous line.Thank you!
Is there any way to add additional actions in JS?I'm trying to use the setAction() method to add an additional action to a form created in InDesign. It already has nearly 100 show/hide actions that were set up in the InDesign document. When I try to add a JS action on mouse up using the setAction() method, it deletes all of the other actions instead of adding to. There wasn't previously a JS action on the button I'm trying to add it to, only show/hide fields.Any ideas?I've been trying to create a workaround by using the visibility of a checkbox as a trigger without success...
Good morning. I have field in a pdf form that reacts to another fields drop down selections. I added some code with popup windows because there are questions that need to be asked before output can be completed. The problem is that the popup window code is in the Custom Calculation Script box so every time I put information in other fields, it pops up...I'm assuming that it's recalculating every time there's change in the form. How can I stop that from happening? Here's my code:var v = this.getField("System Name").value;var vName = this.getField("01: Name").value;var vOrg = this.getField("02: Organization").value;var vTitle = this.getField("06: Job Title").value;if (v=='Select from the dropdown menu'){ event.value = "";} else if (v=='NIPR'){ event.value = "Needed for daily access supporting our operations.";} else if (v=='SIPR'){ event.value = "Needed for daily access supporting our operations.";} else if (v=='NIPR and SIPR'){ event.value = "Needed for dai
I want to create a acrobat action to extract single page pdfs to specific names. first I'am using the "Search and Remove Text" under Protection to find the text to be used for the individual file naming. This creates Comments for each page with the unique text for the names. Then I want to use javascript to to do the extracting.I found this code on the forum that extracts single page pdfs. I need the extracted pdfs named by the Contents............ Annots:/ Redacts:/ Contents: with the Annots removed.I've tried to modify the code with no luck. I am new to scripting, I understand the concept I just don't know the method/properties to perform the function to apply the Annots Contents from each page to the naming of each extracted pdf.code that extracts single page pdfs. var re = /.*\/|\.pdf$/ig; var filename = this.path.replace(re,""); { for ( var i = 0; i < this.numPages; i++ )
I need to add a pdf page as background to another pdf file of 16000 pages.The "Add Background" from acrobat pro is not an option because it is very slow.Thanks
Hi,I have a dropdown list and a group of radio buttons on my form.I need that the appropriate radio button should get automatically checked based on the selection of an item from a dropdown list.For example,If Item 1 is selected than radiobtn1 should be checked and if Item 2 is selected than radioBtn2 should get checked.
I am using a combo box a shift scheduling layoutis there a way to have the value displayed with just a letter after the selection is madeFor example, the Combo Box options are Sick, Vacation, Comp time, Bereavement, Military, and so forthSo if the selected item is Bereavement can it display B or vacation a V ect.Space is limited, so just an initial would be sufficient I have explained to the bosses that we can just use the initials, to begin with, but they don't believe an individual would remember that S stood for Sick Leave and a C stood for Comp timeAny help would be greatly appreciated.
Hi,I have been trying to write a script that automatically populates a price in another field once an item in a dropdown box is selected. From looking at the tutorials, I have a good portion completed but I am running into the issue where every "cost" field is populated and I am not sure how to create a 1:1 selection with each row.Example: desc1 populates for cost1 desc2 populates for cost2Code:var cateringData = { "Large Cheese Board":{ cost: "165"}, "Regular Cheese Board":{cost: "98"}};function setFieldValues(cCateringName){ this.getField("cost1").value = cateringData [cCateringName].cost; this.getField("cost2").value = cateringData [cCateringName].cost; this.getField("cost3").value = cate
i create a drop down menu with option to allow user to add custom text...now how to add a permission for max user character = 100 and if characters is max (100) then go to next field automatically?
i work this javascript code menu :var MyItems = new Array("1","2","3");this.getField("Dropdown14.0").setItems(MyItems);now i want a script help if user choose option "2" then count ++ field name BOX (1...2...3..4...5..............)i try this but not working :count=0if (event.value=="2"){count ++;}
I have tried so many different ways, that I finally decided to break down and ask the "experts"! I have a text field where users will input what organization they are with. I have a popup window "On Focus" that tells the user if they are working for our organization, to input our company name "XYZ"; Otherwise, input whatever. Later on in the form, there's a submit button to email the PDF form. If that text field has XYZ G6, it'll send an email to a certain group of people; Otherwise, if that text field doesn't have that key word (XYZ), it sends the email to a different group of people. Here's what I've been working with:var sendTo = "john.doe@mail.com";var sendOther = "bill.jones@mail.com";var keyWord = this.getField("20 Supervisors Organization").startsWith("XYZ);if (this.getField("31 Sec Mgr Sig").value != "" && keyWord == true) { this.mailDoc({bUI:true, cTo:sendTo...} else if (this.getField("31 Sec Mgr Sig").value != "" && ke
Hi,I have a PDF form with 2 buttons at the top that are set to run a Javascript. One of them saves the file to a specific server location under a certain file name. The other saves it in the same way and also sends an email with the form as an attachment.In previous versions of this form, both buttons worked perfectly fine. I have changed a number of things now about the form itself but no changes were made to the buttons. However, the save function of the buttons no longer work (though the second button still generates an email fine).I've run through every line of Javascript code and confirmed it's the same as the previous version, so I don't think it's the code. I feel like it's a setting on the doc itself, but as far as I can see, they're all the same as well. Any ideas what else (settings or anything else) might block the save function on the buttons from working?Thanks in advance!
This is my first post so any help would be greatly appreciated. My question involves 2 parts:1. I have a PDF form (which was created in Adobe Acrobat Pro DC from a MS Word 2010 document) which has 2 radio buttons, each of which will hide a section of the form. I have managed to hide the form fields using "Actions"-"Run javascript" and code for each field which looks like this: this.getField("Field Name").display = display.hidden;However I do not know how to select and hide the text in that section (which is not a text form field) as well as any of the other objects like a table outline. Any help in this regard would really help.2. Now assuming I can hide the section (from part 1) is it possible to get the next section to move up so that there is no white space between the sections?Thanks in advance for the help
Bonjour,Certains convertisseurs en ligne offrent de type de service, comme par exemple pdfcrowd.com | Pricing Comme nous possédons une licence Cloud Adobe, serait-il possible de l'utiliser sur notre serveur Web afin de générer des pdf pour nos factures actuellement en version html.Merci pour une réponse.CS
I would like to insert an image by pressing a button and have it automatically insert an image from my downloads folder.Currently:I have a button field and under action I have it run the following javascript event.target.buttonImportIcon();With this javascript when i click the button it brings open another window where i have to browse for the image file before opening.Is there a way to modify the javascript such that it will automatically open the image file by coding the address of the file?I have tried event.target.buttonImportIcon(":C/Users/..../imagename.pdf") and that did not work.Thanks
Hi! As there are no solutions at the Printing & Prepress community, I would like to launch the topic over here.How to set up default printer by page format/page dimensions?For example, I print A6 pdf shipping labels (real A6 pdf format) with a labelprinter. Other A4 pdf documents must be printed by another printer.Now I sometimes forget to change the printer and the last chosen printer isn't always the right choice.Is there an existing method or javascript to set up the default printer, affected by the pdf page format?In that way in my case the default printer will be automatically selected by this unique variable: the page format or page dimensions.Another way might be by the pdf filename, as those files have a certain pattern/structure.
We have a timestamped audio file that has been synchronized/timestamped to a text file. We are trying to see if we can somehow have each word in a pdf be synchronized to each synched/time stamped audio and if possible select a word or a consecutive string of words and have the pdf either play back the timestamped audio or open a third part to play the audio?If anyone can help i would appreciatePJH
I've created a form with a text field, lets call it Inbd_Data.The text field pulls data from another source and populates it (i.e. the data is dynamic).Example:Name: Bob|Address: 234 Apple St.|Ste 230|(yes, the data is pipe delimited and the field headers will always be the same [that's what I'm trying to bold])I've been trying to write a script that will search the field for certain words and bold them. (i.e. "Name:" and "Address:" would be bold if found in the data).I've seen people suggesting the use of spans but that doesn't seem to work for dynamic data. Any ideas?
When in "Prepare Form" mode in Adobe Acrobat Pro DC, is there a way to get the selected field name(s) via JavaScript? I would like the user to be able to select a field (or multiple fields), and then click a custom button under "Add-ons" so that I can bring up my own custom dialog. I don't want to write a C++ plugin. Thanks in advance.
May I know to to user Adobe optimization API to optimize multiple pdf files in one batch.If possible, please show the source code.Step 1: Open the folder which multiple pdf files existStep 2: Optimize these pdf files and output into the destination folderThanks in advance.
The downloadable documentation lacks several pages, or at least has several errors in the links.For example, on the page that describes how to create a PDWordFinder object, there's a link to the API reference, but that link is dead.There are also numerous items that simply appears to be missing -- I can't seem to find any real documentation on how the PDDocCreateWordFinderEx function works or how to use a PDWordFinder object at all.
Hi, I used to zoom with javascript with (Zoom) and (Zoomtype) functions, but can i Zoom and Scroll to the Left Bottom of the Page? can this be done via JavaScript ? if this can be done which function to start with ?, Thanks in Advance.
I am creating a PDF form that consists of several yes and no questions (with radio buttons) and I am trying to conditionally require subquestions (if yes is checked). My question is Group1c, my subquestion is Subgroup1c. My answer choices for Group1c are Yes and No. All are radio buttons. My first question is already marked required, and my subquestion should be conditionally required. I tried the following code, but it keeps returning an error. Please advise! Thank you!var f = this.getField("Group1c");var yes = this.getField("Yes");yes.required = false;if(f.value === "Yes") {Subgroup1c.required = true;}
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.