Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
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.
I have a calculated field "C". It is the result of subtracting two other fields, "A" and "B".I need the value of "C" to populate a new field, "D" if the value of "C" is > 0 and populate "E" if the value of "C" is < 0.I'm sure this is simple, but I would appreciate your help.Thanks!
I'm attempting to write a JavaScript for a custom action to create several fields that I often use. I'm first experimenting by using the console window.I've written the following:var name = "KPOR";var type = "checkbox";var page = 0;var location = [78.48, 702.72, 93.6, 689.04];var KPOR = this.addField(name, type, page, location);if (KPOR !== null) { KPOR.fillColor = color.white; KPOR.strokeColor = color.black;}The field was created correctly, however for some reason the console returned "G,0". I would love if someone could explain where that could be coming from.To that end... is there any sort of index or documentation on the console and interpreting the errors/messages it returns? I don't know where else to turn when something like this happens.Thank you!
I'm looking for an easy solution to better manage the appearance of my sticky notes. In a previous post, I was able to get help changing sticky note color based on content. It works great!I am now looking for a way to change sticky note icon based on content. Currently, all my sticky notes are the "Text Note" icon (because that's how they are exported from InDesign). But I'd like to be able to easily and globally change the Text Note icon to any of the other icons.It would be even more amazing if the script could also delete the text associated with the color.For example. If the sticky note content starts with "Help:" the Text Note icon would change to the Help icon, and then also delete "Help:" from the beginning of the sticky note contents.
I've been playing around with this for hours and I just can't seem to make it work.I can save directly to a network drive.... and lots of my forms use that functionality. But trying to save directly to SharePoint is giving me fits.I know that I can manually save it to SharePoint. But I'd like to put a button on a form that will automatically save to a SharePoint library.Is it even possible to use a javascript trusted function to save directly into a SharePoint library?Thanks everyone!!
I am currently trying to draw a PDF (as well as the text annotations) using PDPageDrawContentsToMemory, but I'm running into problems.This [https://forums.adobe.com/thread/827380] thread seems to suggest text annotations will draw if kPDPageIsPrinting and kPDPageUseAnnotFaces are set as drawFlags, but this doesn't appear to be working when I try it. The PDF draws to the screen, but without the annotations. What am I missing here? Thanks Relevant code snippet:"...csAtom = ASAtomFromString("DeviceRGB");drawFlags = kPDPageIsPrinting | kPDPageUseAnnotFaces | kPDPageSwapComponents;smoothFlags = kPDPageDrawSmoothText | kPDPageDrawSmoothLineArt | kPDPageDrawSmoothImage;PDPageDrawContentsToMemory( pdPage, drawFlags, &matrix, pASInvRect, smoothFlags, csAtom, 8, &bRect, (char*)pBits, bitsSize, nil, nil);"
I created the following code for the field with the number 30: var x = this.getField("valor_col").value;var y = this.getField("esc_col").value; // another field (dropdown) that receives only color names (strings)if (y == "red" ) {event.value = x + 4}else if (y == "blue" ) {event.value = x + 2}else if (y == "green" ) {event.value = x - 2}else {event.value = x + 1}The code is working correctly, the problem happens when I type any value in the other fields that do not yet have javascript code. For example, when I choose the blue color, my field should add 2 to the total, this actually happens, but when I type any value in any other field it adds 2 more to the value of the field that has the code I created (for example), and this should not to happen. Can you help me?
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Sie haben bereits einen Account? Anmelden
Noch kein Konto? Konto erstellen
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.