Unlock the power of Acrobat SDK through our community.
Askettäinen
I am trying to run a multiple variable statement. When i run the statement individually it works, but one I combine multiple lines it only reads the last line. could someone tell me where I am going wrong?this.getField("Capacity").value ="";if (this.getField("Media").value == "Liquid" && this.getField("Orifice").value == ("D")&& this.getField("Series").value == ("740")){this.getField("Capacity").value = ((this.getField("Area")).value *4.814)*.791*Math.sqrt(62.37*(this.getField("PSI")).value*1.1)};this.getField("Capacity").value ="";if (this.getField("Media").value == "Liquid" && this.getField("Orifice").value == ("D")&& this.getField("Series").value == ("741")){this.getField("Capacity").value = ((this.getField("Area")).value *4.814)*.791*Math.sqrt(62.37*(this.getField("PSI")).value*1.1)};
I have a drop down field with 65 or so choices. Based on the selection, I need specific buttons to be visible and other buttons to be hidden. I have a working version of the cod but is is far too long to fit in the 1100 lines available. var layers = this.getOCGs();var v = event.value; for (var i = 0; i < this.layers.length; i++) {if (layers.name == "AARP" && v == "AARP"||layers.name == "AETNA" && v == "AETNA"||layers.name == "AFFINITY EXCHANGE" && v == "AFFINITY EXCHANGE"||layers.name == "AFFINITY HEALTH" && v == "AFFINITY HEALTH"||layers.name == "AFFINITY MEDICARE" && v == "AFFINITY MEDICARE"||layers.name == "AGEWELL" && v == "AGEWELL"||layers.name == "ALICARE" && v == "ALICARE"||layers.name == "AMERICAN PROGRESSIVE" && v == "AMERICAN PROGRESSIVE"||layers.name == "AMERIHEALTH" && v == "AMERIHEALTH"||layers.name == "APWU" && v == "APWU"||layers.name == "AXA ASSISTANCE" && v == "AXA ASSISTAN
I have a word document with a series of heading types, which when printed or created using either the word export or the acrobat create tool blurs the bulleted Number, both in the contents page and on the related page in the pdf.Any idea?
OS : windows 7Acrobat Version : Adobe Acrobat Xi (Engilsh) 11.0.2Would you please help me?when I open the 가나다.pdf (가나다 is 2bytes korean character) Application stop pop-up.For more details. APPCRASH message but, I cannot find this issue.
is it possible to do this in Acrobat using javascript?Thanks,Reymund
How do I make layers/optional contents expanded by default?
Sorry, I am a beginner but cannot find the exact answer in the previous questions.I have an adobe form with a text field (formatted to time HH:MM) in which the user enters a time in the format HH:MM. There is another text field, this one returns a numerical calculated value (which varies dependent on other inputs). I need the form to be able to add the value of the second field to the inputted time and return the answer in a third text field as a time in HH:MM. Please help
Hello, How can I populate an image based on conditional formatting?I am making an patient results form and based on each questions score I want to populate an answer that is both copy and an image. Right now I have the following code that is providing the copy answer:var Deepsquat = this.getField("Deepsquat").value;var Pain = this.getField("Pain").value;var Red = this.getField("Red").value;var Yellow = this.getField("Yellow").value;var Green = this.getField("Green").value;if (Deepsquat == "0") event.value = Pain; if (Deepsquat == "1") event.value = Red; if (Deepsquat == "2") event.value = Yellow; if (Deepsquat == "3") event.value = Green; How do create a corresponding image to populate along with their answer? Can I do this in a text box with the custom calculation script or is there another place to input the appropriate code?Thank you.
Hi,I am using the action wizard to try to make sure the header/footer created in the java script is applied after the content of chosen PDF files is shrunk to avoid overwriting of content. To do this, I brought over the "Header & Footer (Add)" prior to the Java Script Code.Within the "Header & Footer (Add)" Option, I selected "Appearance Options" and checked the "Shrink document to avoid overwriting***" and made sure "Page Range Options" is set to "All Pages."However, the action wizard only shrinks the first page. The subsequent pages in the pdf file get overwritten with the header/footer created in the Java Script code. What am I doing wrong? I am using Adobe Acrobat Pro X on Windows 7 machine.
I am trying to create a request form for specific users (only 3) but will require the reference/invoice number to be created every time the receiver press the submit button on the form. The number should also increase every time. In fact, can I even customer the number to each individual? Eg Person A will start from 0000, Person B start from 4000, Person C starts from 7000?Please help!!
Hello, I would like to know how is possible to make script in the PDF file for pop up window (with message about copyright) after if somebody press Print Screen key.
HalloWir nutzen seit heute Adobe Acrobat DC Version 2015.006.30174 mit Office 2016Ich kann aber mit DC keine Word Dokumente öffnen. Unter Voreinstellungen fehlt auch Word. Excel und PowerPoint ist da. Wie bekomme ich Word dazu?
Hello, I designed a editable form pdf for a client who will be using Acrobat Reader on a Windows computer. I have the buttons: CLEAR, PRINT, EMAIL, SAVE in the document.I am not familiar with scripting.I am trying to develop a javascript that works within the SAVE button that on button up action will bring up a save as window with a preset folder location of the user's desktop with name field auto populating with a set value followed by a name field along with a date field from the document.Is this possible?Here's an example:Form name: InvoiceName field in form: "BOB"Date field in form: "02-15-15"Save to (window will go directly to the folder):Users desktop folder named "Invoice"with name "InvoiceBOB-02-15-15.pdf"at this point all the user has to do is click save in that window.Thank you community, I hope was clear enough in explaining my situation.I appreciate the help.By the way, I'm designing on a MAC, users of the form will be on PC if that matters.
I am completely new to Javascript, so please bear with me!I have an acrobat form. I would like to use Javascript to take the last two characters contained in one field on the form and join them to the current date and time, putting the result in a second field. For example: ABCD, becomes CD-24-Jan-2017-20:39Something like this but it doesn't work, as the "WeighOrderNum" field remains blank with no ID!var n = this.getField("RegNum").valueAsString.substr(-2);var d = new Date(); //current date and timevar df = util.printd("-dd-mmm-yyyy-HH:MM", d)var f = this.getField("WeighOrderNum");f.value = n + df;Any help is much appreciated.
Hi,I want to know if there is a way to disable the ability to edit or export an adobe action (all in java script). In other words, I do not want users to have access to the code or be able to export it for use between users. I noticed the preinstalled Action Wizard actions such as "Archive Paper Documents" do not allow any editing (or access to the code).Thanks.Sue
I have one drop down named Quantity and three text fields named Qty1, Qty2 and Qty3. At the moment I'm using three checkboxes to run these scripts:checkbox1this.getField("Qty1").value = this.getField("Quantity").value;checkbox2this.getField("Qty2").value = this.getField("Quantity").value;checkbox2this.getField("Qty3").value = this.getField("Quantity").value;The scripts work fine but what I'd like to do is to eliminate the checkboxes as the triggers to place the Quantity amount into Qty1, Qty2, Qty3 text fields as I make the selections. Is there a script that would enable me to simply have the drop down populate the text fields if Qty1 is filled in (and likewise for Qty2 and Qty3 fields). Or am I stuck and have to use the checkboxes to trigger? If this is possible can someone shed some light so I can see how it can be done? Thank you.
I have a checkbox that the user can click, which will open another PDF form for them. I put the code below as a javascript action on the checkbox. It works for PC users, but not for Mac users.var document = app.openDoc("/internal.location.com/mke/Group/user forms/Advertising/Site Email Request Form/Z_Blank Form/email request form.pdf");I verified the path of the PDF that I want the checkbox action to open by using "this.path" in the debugger (Acrobat DC on a Mac). I had the "Advertising" volume mounted on the Macintosh. When I ran the "this.path" command, it returned Advertising/Site Email Request Form/Z_Blank Form/email request form.pdf The above code only works on the PC not the Mac. Is it possible to get the checkbox script to work with both a PC and a Mac? What changes do I need to make? Based on the results from running "this.path" on the Mac, it looks as though the script should work as is,since the path is valid, or does it have to match exactly what this.path
I have 2 dropdown Fields.One Field has x Options. The other field has no available options by deafault, but should get different options based on the value of field1.Currently I wrote this script, but it isn't quite working as intendedthis.getField("Field2").clearItems(); //deletes anything in field2if (this.getField("Field1").value != "") // Proceed to check different options only if field1 isn't empty in the first place{ if (this.getField("Field1").value == "Option A") // Is the value of Field1 "OptionA" { values = [" A", "B", "C", "D"]; // Initialize array with possilbe choices this.getField("Field2").setItems(values) //Add choices to the dropdown field "Field2" } if (this.getField("Field1").value == "Option B") //repeat for option b {  
I'm having problems with a PDF form in Acrobat Reader on IOS. There's a function to set a checkbox value based on which range a field's value is within. There are 3 ranges (55 or less; more than 55 up to 85; more than 85). The corresponding values in the checkboxes are 'A', 'B', 'C' (they originally had the range description, but I simplified it to a single letter for debugging purposes). If the value is 0 then I set the checkbox to 'Off'Everything works properly in acrobat, but on IOS, it seems to be completely intermittent. I added a field to create my own 'debugger' on iOS, and I'm populating it with the values that of the field, the range value that needs to be set in the checkbox, and the actual value of the checkbox.Value: 60Range Value: "B"Checkbox Value: "B"Each line is added to the text field right after the variable or checkbox value is set in the function. On IOS, the checkbox is either getting set to 'Off' despite the fact that the range value is 'B' (or whatever the actual
Hello folks.I'm attempting to pull the file folder in which my PDF is contained into a text field. I'm assuming there is a way to do this in the document javascripts, but I cannot seem to figure it out.Is there way to either:1) determine the folder name in which the PDF is located and push that into a text field (e.g., the fold name is "412" and that's what I'd like in the text field), or2) Remove a portion of the file name itself, and push what's remaining into a text field (e.g., the file name is "Review Documentation 412" and I want "412" to appear in the text field.If it matters, I'm using Acrobat Pro CC.Thanks in advance for any assistance!
I need help with the proper javascript for a multi-page form where only page 1 of 3 pages needs to be submitted by email when the user clicks on the email button I added at the bottom of page 1. Right now it creates & emails a .pdf containing all 3 pages when the user clicks on the email button. Page 1 is the form itself [to be completed & digitally signed by the user] and pages 2 & 3 are just informational & I don't need or want page 2 & 3 to be part of the emailed .pdf. I know absolutely nothing about javascript so I'll take whatever help I can get.I don't know how to attach/insert the .pdf file to this message for you to review it.
I created a JavaScript code which imports files into the attachment of a pdf form, then searches for the written pdf filenames within the pdf form and links the texts to the imported files. I employ Adobe Acrobat X (10.1.16)The code (which is run as folder-level JS) is shown here:var impDatObj = app.trustedFunction( function(odoc,filenme,filepth) {app.beginPriv(); odoc.importDataObject(filenme,filepth); app.endPriv(); });var attachpath="/mysrv/subdir/";impDatObj(this, "abcdef_g.pdf", attachpath+"abcdef_g.pdf"); impDatObj(this, "987654_3.pdf", attachpath+"987654_3.pdf");var numPgs = this.numPages; for (var jj=0; jj<numPgs; jj++) { var numWords = this.getPageNumWords(jj); for (var i=0; i<numWords; i++) { var ckWord = this.getPageNthWord(jj, i, false); if (ckWord.indexOf("pdf")>=0) { ckWo
Hello! I am fumi. I want to do zoom-setting named "FitPage" to allbookmarks(include children) of some pdf files using Javascript + "ActionWizard".(I have "Acrobat DC pro".) Could you show me sample codes of javascript for it? I found some addin for acrobat,for example "Ever map",but,I am looking for a method using javascriprt instead of addin. Thank you.
I have a custom form built in PDF and I need the user to be able to type in their Dollar amount at the top ( $10,000) and then have the corresponding breakdowns for each month - i.e. 5.5% of $10,000 in January, 6% of $10,000 in February.Is this possible? I am afraid this is way out of my scope!Thanks in advance.
I'm creating a form and I need the code to calculate 6% tax to the price total (field)? Please advice, thank you in advance!
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Onko sinulla jo tili? Kirjaudu sisään
Eikö sinulla ole vielä tiliä? Luo tili
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.