Unlock the power of Acrobat SDK through our community.
Recently active
So I have a form with multiple date fields. They all need to calculate first starting with an initial date field on the formSo, say it all starts with the field Date1, which is autopopulated when the form opensThenDate2 = Date1 + 9 months, last day of month (so if 9 months falls on 5/16/2018.... the date should read 5/31/2018 (last day of the month)Date3 = Date1 + 1 year, last day of monthDate4 = Date]+ 21 months, last day of monthDate5 = Date1 + 2 years, last day of monthCan someone help with a script for thisand also tell me where the specific scripts are placed.I sometimes get confused if Date2 script goes in Date2 or a field before.Thanks for your help!
How do you change the items in a dialog popup based on the selection of another dialog popup?
I have a folder-level JavaScript file installed in the user javascript folder. I'm wondering if there's a way to pass a URL as a parameter when launching Acrobat and to have the folder-level JavaScript code access the URL so that it can use that particular URL. Is this possible?
I am getting an error when opening a file........the application was unable to tart correctly (0xc0000022).....I have reinstalled program....gotten updates and tried to repair.....any ideas?
I create forms for several different companies, and often the only difference is the header. Each header has several checkbox fields to select a particular branch for that company. To save time, I am working on a batch sequence to have the following functionality on one open file:*Add Background (this is the header, a pre-saved image)*Add Header/Footer (stamp with revision date)Add Checkbox Fields (via JS Execution)*Save Document with a prefix*Remove Old BackgroundRemove Old Checkbox Fields (via JS)*Add New BackgroundAdd New Checkbox Fields (via JS)*Save Document with a prefix*Lines marked with an asterisk are built into the action using pre-built action wizard tools... for now.and so on... once I nail this down I will need it to go through about 5 iterations to end up with 5 saved files that have different headers. However, I am running into several problems.First and foremost, the code to remove the first set of checkboxes works perfectly in the console. No errors and removes all che
We are working on automating some customer files we receive on a daily basis. We have used some 3rd party tools to export as text.BUT.. We tried a export to XML from our full version of Adobe Acrobat and we like how the data is exporting out.here is the question.Is there a way to use .net to interface with Acrobat to tell it to export the xml data?We are getting a bit lost in the sdk info.
I'm very new to creating forms and have never used any Java Scripts, but I'm hoping that someone here can help me.I have a kit that has a lot of configuration options. every time we send one of these to a customer we have to type out all the items included into a kitting list. what I want to know is if/how I could have a page full of tick box selections that someone can go though and easily mark what is in the kit, that will then populate a list or text box?Many thanks in advance!
Hello all, In Excel, I had a dropdown cell and then other cells throughout the page linked to item selected in the dropdown to change based on the selection. In practice it's a simple IF THEN statement, however I'm having trouble replicating this in JavaScript. For example, if the dropdown box choices are (Gold, Silver, Copper), then I need a separate textbox to populate with (150,100,50) respectively, and then another separate textbox still linked to the dropdown choice to populate with (A,B,C) etc and so on throughout the page as needed, all hinging on the dropdown choice selected.This is what I used in Excel, is this possible to replicate? =IF($I$12="Gold",150,IF($I$12="Silver",100,IF($I$12="Copper",50,IF($I$12="________",0))))Any advice or direction would be appreciated. Thank you.Eric
Hello,I already read the answer on your previous javascript answer (May 2015) unfortunately it does not work on my form.I would like to create a java script in order to get the current date when I open the form.My field is DateThe format is dd/mm/yyyy (21/01/2018).Please find below the date format I have on my form :Please find below the script worte :I use Adobe Acrobat Standard DC with Windows 10Thank you in advance for your help.Olivier
I'm trying to create a fillable form for users in my organization that use both Acrobat (9 & DC) and Reader (DC). The form is a template that is filled out by users in our organization and then needs to be locked for editing if it is ever distributed outside of the company.I'm trying to set up a button that locks all the form fields AND disappears after it is clicked (so users outside our organization do not see it). I have the script for the locking finished/working, but I'm having trouble making the button disappear.I've set up the following script on the click:event.target.display = display.hidden;This seems to make the button disappear for the users with Reader, but not with Acrobat. I've also used:this.getField("Button1").display = display.hidden;and I have the same problem.Any ideas on what I can do differently? I am not a heavy Java user, so I'm not well versed in this code...
how to execute .sequ file using acrobat SDK?
I am running Acrobat Pro XI on a Windows 7 computer. I have placed the following code on a button so when the user clicks it the layer"L730-A26" will turn off.var colorLayer = "L730-A26";var ocgSchematicArray = this.getOCGs(this.pageNum);for (var i=0; i < ocgSchematicArray.length; i++){ if (ocgSchematicArray.name == colorLayer){ ocgSchematicArray.state = false; } }I am getting this message:I have run this exact code in the exact same way on another file without issue. I have deleted all the code and typed it all out (no copy and paste) to eliminate the possibility of odd characters from pasting.Still no success. Can someone please tell me what I am doing wrong?
I have a PDF with a large number of pages, each page of which has its own set of 10–15 named check boxes. These need to be checkable in any combination and independent of one another. However, I'd also like to create a single Check All box on each page that, on the first click that marks the Check All box, places a check in all boxes on the page and, on second click that clears the Check All box, clears all boxes on the page. How do I do this?At the moment, I have it so each page has separate Check All and Check None boxes. This is more or less functionally fine, but looks clumsy across so many pages and seems to confuse some users. Currently, I'm using Actions --> Mouse Up --> Run a JavaScript with the following scripts.For Check All box:if (event.target.value == "Yes") this.getField ("CheckNone").value = "No" this.getField ("Item1").value = "Yes" this.getField ("Item2").value = "Yes" this.getField ("Item3")
Hello Friends,Thank you in advance for helping me learn Javascript! If anyone has any advice on my current issue that would be fantastic. I hope I can explain this so it's understandable. Here are the scenarios:Cell D = L16Cell E = L17Cell F = L18Cell H = L20Cell I = L21Cell J = L22Example: If $10,000 is entered in Cell D, $250 is entered in Cell E, $250 is entered in Cell F, I've written script that limits the entry into Cell F to 1.5%. Cell J will automatically be $10,000. Here is my script which works! The result is $150.var a = this.getField("L22").value;if (event.value > a * .015)event.value=(event.value = a * .015);else event.value;if (event.value) event.value = util.printf("%.4f", event.value);The issue happens when I enter an amount into Cell H (example $5,000). It is supposed to reduce Cell J. So, the original amount of $10,000 will reduce by $5,000 with a new result of $5,000. Cell F should reduce down to $75.00.&
Hi all,I found this great thread from a while back on reading linked text boxes in acrobat:How to LINK two or more Text FieldIt works and kudos to those who helped. Now, I have the task of creating a newsletter template for every division in my agency. They will all follow the same format which will be:• There will be a locked header and footer• 2 columns (2" wide) with 1/4" gap between the columns. These will be positioned on the right hand margin• left and right margins will be 3/4" • There will be 3 pictures vertically placed with a one line caption underneath that will be 2 1/4" wide.What I would like to do is create a template that the users from each department can just plug in their text (also want to keep the text at a locked size but allow the user to be able to change the style to bold or italic as needed), and place the images in the 3 allotted boxes.Is there a way to create a fillable form where the user can bold or italicize text? I'm on a mac but most users will be
Experts, The below script is partially working. I have a checkbox, "401k50", with a value of 0 or 1 (if checked). If checked, if in a different field User enters a number greater than 24500, the alert pops up and tells them the must enter a number between 0 and 24500. This works. So far so good. If the box, 401k50 is unchecked, and User enters a number greater than 18500, an alert box is supposed to tell User to enter a number between 0 and 18500. This is not working. Currently, if unchecked, user is able to enter any number he wishes. Here's my script://401k50 is a checkbox, value of 1 if checked, 0 if uncheckedvar v1 = +getField("401k50").value;//Checkbox is checkedif(v1 > 0){ var v2 = +event.value;if (v2 > 24500) { app.alert("Since you are over 50 you are eligible for a catch-up 401(k) contribution. Please enter a number between 0 and 24,500.",3); event.rc=false;} // Checkbox is uncheckedelse if(v1 < 1)
I am trying to create a SUMIF formula in adobe acrobat and have no idea where to begin. The code I am working with =SUMIF($F$7:$F$28,$H30,I$7:I$28). Any help of where to begin and how to finish building the script would be great.Thank you,Ali
Hallo, ich habe ein PDF-Dokument (InDesign - Adobe Acrobat) - ein Buch mit 200 Seiten). Ich habe es der Autorin geschickt und sie hat in das PDF mit Adobe Reader Notizen hinzugefügt für weitere Änderungen. Wenn sie auf Datei "Speichern unter" - "PDF" - "Buch.pdf" geht, dann kommt die Meldung: "Das Dokument konnte nicht gespeichert werden. Beim Lesen dieses Dokuments ist ein Fehler aufgetreren (114). Auch im Adobe Acrobat.English: I created a PDF Dokument (a book with 200 pages, Indesign-Adobe Acrobat). I send this pdf to the lector and she added some notices in the document. She tried to save it, but it wasn´t possible. "There was a problem reading this document... (114)." Also in Adobe AcrobatCan anybody help us please?Thank youJulia Danischjulia.danisch@censa.de
Cuando se abre la ventana de Outlook, al clicar en SendMail, no reconoce los botones de la cinta de opciones creados por mí mediante VB
Hey everyone,For a form where an inspector inspects a building, I'd like to have a variable amount of image fields the user can put images into. However, depending on the building and exceptions for the task at hand, It'll vary per building how many image fields will be required in the form.I've found the Forms image field excellent for images in general, so I'm planning to use that. However, I'd like to be able to dynamically add these image fields with say, the press of a button. Ideally with a + button to add an image field, and a - button to remove the last image field.Is this possible?
I'm trying to piece together two bits of Javascript code that I found on these forums, but I'm not experienced in this at all so I keep getting an error message. This is what I have so far:this.addScript("init", "var f = this.getField(\"Today\") + if (this.documentFileName=="Estimate Template.pdf")) f.value = new Date();");What argument am I missing in this line of code?Thanks in advance!
Hi everyone,I’m trying to put some JavaScript together to show/hide multiple dropdown fields within a PDF when an option from the previous field is selected.I've developed some code that works and below is a sample:if (event.value == "Please Select") {this.getField("ccCONchim").display = display.hidden;this.getField("ccCONcobs").display = display.hidden;this.getField("ccCONchc").display = display.hidden;}else if (event.value == "Consumer - Construction & Home Improvement Markets") {this.getField("ccCONchim").display = display.visible;this.getField("ccCONcobs").display = display.hidden;this.getField("ccCONchc").display = display.hidden;}else if (event.value == "Consumer - Consumer & Office Business Sponsor") {this.getField("ccCONchim").display = display.hidden;this.getField("ccCONcobs").display = display.visible;this.getField("ccCONchc").display = display.hidden;}else if (event.value == "Consumer - Consumer Health Care") {this.getField("ccCONchim").display = display.hidden;this.
Hi everyone !!!I have a pdf form which has some scripts such as spawn a page, field hide or show depending on the checkbox checked ...Everything is working perfectly on window, when i decided to check if everything was alright on Mac ... it doent work.The field which is supposed to be hidden until the check box is checked is directly showed.Thx for the help !I am using acrobat DC Pro
Hello,I have no experience with JavaScript. Can someone please help me with a custom calculation for a checkbook register? Example of Field Names used on each line of the form:Amt1 Dep1 Bal1Amt2 Dep2 Bal2I've tried the following Simplified Field Notation: BalanceForward - Amt1 + Dep1. This works on the first line of the form and then auto populates the balance field on each remaining line of the form. If there are no entries (check or deposit) I don't want to see the balance populated.I've also tried the following JavaScript with similar results. The below works in the first line (Bal1 field), however when I change the script to reflect different field names it doesn't calculate and returns nothing.Example of script in Bal1 field:event.value=Number(this.getField("BalanceForward").value)-Number(this.getField("Amt1").value)+Number(this.getField("Dep1").value
Is it possible to connect a PDF form to a Microsoft Access database using javascript? I want a read only text box on the form to get the autonumber field from Microsoft Access database I created.
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.