Unlock the power of Acrobat SDK through our community.
Als letztes aktiv
Hello,I am not a coder but I am trying to find out how can I make a form so that when one value is selected in "column A" it will automatically populate a certain value in "column C. Please see attached image. There are two options to choose from in each of the columns, so:If "option 1" is selected in column A, then "value A" will populate in column C; orIf "option 2" is selected in column A, then "value B" will populate in column CThanks ahead for any assistance!
In our workflow for pre-press, we get a lot of documents that we need to optimize, and very often something that gets in the way are lines with empty text. Usually it's just a space or a hard return, no other characters are in the text field. It tends to throw off the whole page when we try to automatically scale it because the page is using that empty text box when it scales and the text is in a weird spot. If we could remove these sorts of text boxes, that would be amazing. Seems like a simple script should do the trick. Any help appreciated.
Super confused here.So I'm making a series of forms for people to fill out that use various Javascript to enable/disable fields, change colors, etc.Some people are on 'secure' computers and need to actively enable Javascript. On most of the forms, the yellow bar appears at the top with the message about enabling Javascript. When that appears and they enable it, everything works fine.However, for some forms, and with some people, this doesn't happen. No prompt appears at all, so no scripts can run. It just doesn't give the option at all, even when other forms do.Everyone is using the same version of Acrobat Reader DC as far as I can tell.What could I be overlooking? Could it be a setting on the user's computer? Why would it only effect certain files?
Hi together,I have a PDF-Form and there some objects become visible or invisible with checkboxes. This works very fine and is not so hard to realise. But after I make a object (e.g. a picture form element) visible I want to move the object with a drag-and-drop-function.Is this possible with JavaScript in Acrobat DC?Thanks for your helpThorsten
I have a Adobe acrobat questionaire which has different scores dependant on which of the 6 check boxes is checked I have set each individual score in a hidden text box which is made visible when the corresponding check box is selected. This works fine except I can't get only the visible score to show in a total field. It also calculates the hidden amounts. I have used the custom calculation java script below on the Total field but nothing shows, can anyone help me : (// Custom calculation script for Total field// Initialize variablevar sum = 0;// Add first field value if its corresponding check box is selectedif (getField("Q1 Client 1#0").value !== "Off") { sum += +getField("Q1 a1").value;}// Add second field value if its corresponding check box is selectedif (getField("Q1 Client 1#1").value !== "Off") { sum += +getField("Q1 b1").value;}// Add third field value if its corresponding check box is selectedif (getField("Q1 Client 1#2").value !== "Off") {
Not sure if this combination of requirements is possible. I have a date field that automatically updates for a form and cannot be edited.I want this date field to lock the date in place based on a digital signature block. I saw a post here https://forums.adobe.com/thread/2302655?q=Lock%20date but this is based on saving the document.The date field is named "MyDateField".Is this possible?Thanks in advance.JT
Hello, I wonder, if there is any method to show the exception message if plug in didn't load ?
Hi again,I'm learning, slowly but surely...I'm awfully stuck again.so I have this// Place all prepopulation data into a single data structurevar weapondata = { Scythe:{ ST: "2", RN: "ML", Special: "Savage, Cumbersome, No shield WIU", glorycost: "25", WeaponAB: [ {text: "Savage: ", fontWeight: 700}, {text: "On a successful ST roll, every 2 Success Stages you achieve does +1 Damage, instead of every 3 Success Stages \n",}, {text
I've written a simple script, but cannot seems to figure out why am I experiencing a delay in the toggle of the message.I have a textbox that sum's up values selected on 3 drop down lists. All have been formatted as numbers. The sum works just fine.I have another textbox that stores the above total and I have added a script to display a message if the value if greater than 100 or less than 100.The message displays after a lag. For example, if the total selected is greater than 100 and i use the dropdown to select that now makes the value less than 100, the message does not switch unless i make a second change on the drop down.here is the code:if (this.getField("Text2").value < 100) {this.getField("message1").display = display.visible;this.getField("message2").display = display.hidden; }if (this.getField("Text2").value > 100) {this.getField("message2").display = display.visible;this.getField("message1").display = display.hidden; }I guess i am missing some kind of event trigger whe
Is there a way with Javascript to invoke this.exportAsXFDF({cPath:(\C\Test\Test.XFDF), bAnnotations:true}); just after a measurement is finished? So the info is added to the file at that moment. For document-level script (would rather have it as file-level script but that is not possible).if (condition) { this.exportAsXFDF({cPath:(\C\Test\Test.XFDF), bAnnotations:true}); }
Asking anyone for a little guidance using Acrobat XI Pro Form with a Javascript issue.My situation involves one pdf form which includes several fixed size templates. I want an option to show or hide these templates from a checkbox field so I began to use the javascript code:Checkbox2 (Spawns Template2): if(event.target.value == "Off") this.deletePages(2);else{ var a = this.getTemplate("Template2"); a.spawn(2,false,false);} Checkbox3 (Spawns Template3): if(event.target.value == "Off") this.deletePages(3);else{ var a = this.getTemplate("Template3"); a.spawn(3,false,false);} This works fine except the templates are actually 14 pages and 50 pages… so I modified started to test with only two pages of each template; below is an example mode for one checkbox:if(event.target.value == "Off") this.deletePages(1,2);else{ var pn2 = this.getTemplate("PN2");
I am trying to make a PDF for school fees automatically calculate when the user enters the number of children in each department (P, H or N). I thought I had the code figured out, but I am getting an error message stating "missing ; before statement 3: at line 4" and it highlights the line I made red. I tried adding a ; at the beginning of that statement, but the error message did not change. Any help would be greatly appreciated.var c2 = 1950; var c3 = 2150; var c4 = 2350; var c5 = 2550;var children = this.getField("P").value + this.getField("H").value + this.getField("N").value;var full = this.getField("P Calc").value + this.getField("H Calc").value + this.getField("N Calc").value);if (children > 4) {event.value = Math.min(full,c5);} else if (children > 3) {event.value = Math.min(full,c4);} else if (children > 2) {event.value = Math.min(full,c3);} else if (children > 1) {event.value = Math.min(full,c2);} else {full;}
I have a field in which I need to sum the numbers in 2 other fields and the results of an optional radio button list. It worked fine when I used Acrobat's built in Value is the option to sum the 3. However, I want the filed to remain blank instead of displaying zero when the form is blank (so Luddites can print it and complete it by hand), so I switched to custom calculation. I got a result of "600off" when no radio button was checked. I tried the below script to substitute zero for "off" when no radio button is checked, but am getting a syntax error at the zero. I tried putting the zero in quotes to no avail. This form is my first foray into javascript and I clearly only know enough to be dangerous. Thanks in advance for any input.event.value = this.getField("Total Fees").value + this.getField("Other Amnt").value + if(this.getField("Donation").value = ”off” {0;} else {this.getField("Donation").value;}if (event.value == 0) {event.value = "";}
I want to allow users to enter the time in whatever form they want (as long as it's at least 3 digits {e.g. 0800, 800, 8:00, 0925}) and have the time displayed using the h:MM format when they finish. I've not been able to find an example of an OR statement that will allow something like this. Any help is appreciated.
Is there a program out there that will allow me to track shared PDFs for review without having to open individual programs? If so, which are best?
Here's whats being populated, And its in the document level javascript.// Place all prepopulation data into a single data structurevar Carddata = { Jarl:{ AP: "3", SP: "5", MA: "3", RA: "2", DF: "3", RS: "1",  
Hello guys,I want to export PDF file into powerpoint. I know this is possible manually using the Export option from File. There must be a way to do it via javascript as well. I need some documentation that can help in the scripting of PDF using documentation. I would like to try first myself but the documentation link is needed.ThanksCharu
Good day. I have several documents that i process on a daily basis. I have some documents that have 6 pages and others have 7. I need to ensure all documents have 7 pages. Basically i need to ensure all even docs are made odd
I converted an excel sheet to a Form but I need help with Formatting and Calculating with JavaScript.Need javascript for calculating two fields of a Special Arbitrary Format to a Number field.[Text1] "004+00" - [Text2] "010+50" = [Text3] "650"
I have pieced together Javascript to validate that required forms are filled, if filled, prompt a save as with new name suggestion, and then email submission. It functions properly on Mac Adobe Acrobat Pro DC, but on Windows 10 Adobe Reader 2017, I received on the Javascript debugger "TypeError: f is null 7:Field:Mouse Down"I have it set on a submit button, Mouse Down, run a JavaScript. It may look pretty messy as I am very novice to this!Any idea why this would be happening from the script below?var emptyFields = [];for (var i=0; i<this.numFields; i++) { var f= this.getField(this.getNthFieldName(i)); if (f.type!="button" && f.required && f.display==display.visible) { if ((f.type=="text" && f.value=="" && f.value !== 0) || (f.type=="checkbox" && f.value=="Off")) emptyFields.push(f.name); }} if (emptyFi
I have a form that has 2 date inputs representing the start and end date of a trip.I have a 3rd date input that requests the company credit card expiration date. I want to show/hide a message that says something along the lines of "card will expire during trip" if the expiration date of the credit card is before the end date.In summary.Input start date, input end date, input cc expiration date. If cc expiration date is before end date, show a message, if not, message is hidden.Thanks in advance.JT
Hallo,ich habe ein drop-down menu (M1) mit z.B. Optionen 1 und 2. Bei Auswahl 1 soll textfeld n1, bei Auswahl 2 textfeld n2 bzw. visible werden.Aktuell jedoch muss ich nach der auswahl erneut das drop-down menu anklicken damit die Programm Abfolge abläuft und die Textfelder entsprechend der Auswahl angezeigt warden. Es ware schön, wenn sofort mit Auswahl der Option die Textfelder nach Programm (javascript) angezeigt warden.Maus taste loslassen oder drücken ändert nichts oder last sich nicht ändern.Vielleicht kann mit jemand weiterhelfen?Hier der code (unter Aktionen E2):var M1=this.getField("M1").valueif(M1==1){this.getField("n1").display = display.visible;this.getField("n2").display = display.hidden;}else{if (M1==2){this.getField("n2").display = display.visible;this.getField("n1).display = display.hidden;}}Beste Grüße und Danke
Here's the English version of what I'm trying (and failing) to do:The plain English version of the calculation I’m trying to make for each of the “Total” fields.Allow value from “c1_w_1”, IF field “camp_1” = “Dougy”+Allow value from “c1_w_2”, IF field “camp_2” = “Dougy”+Allow value from “c1_w_3”, IF field “camp_3” = “Dougy”and so on...It feels as though it needs to be a doc sript and not a field properties script. Below is a graphic to illustrate the functionality I'm trying to recreate in this PDF form.Any feedback would be greatly appreciated!!!
Hello all. I have a 3 page doc that I'd like to show/hide and reset certain fields only once. Once, at the time of opening the doc. I'm trying to have a fresh page every time I open the doc. Not, when navigating to the next page and then going back to the opening first page. I've searched a bit trying to find an example of javascript that will do the job without any luck. Can someone point me in the right direction to accomplishing this? Thank you for the help.
Hello World,I'm still a Newbie to Acrobat and JavaScript.I've been combing through the forums, Pubs and Manuals to create this code and cannot seem to get it to give me my answer.I mean it doesn't display the result in my "StopTime" Text-field (Time - h:MM tt) and because I cannot figure out how to view my results line by line.I don't know if it's because of prior code.Could someone please advise what I'm doing wrong.Here is the code I've created;// get the start time and added timevar sStart = this.getField('StartTime').value;var sWork = this.getField('Work').value;var sTravel = this.getField('Travel').value;//Convert Time to secondsvar vStart = Time2Num(sStart.FormattedValue, "h:MM tt");var vWork = (sWork * 3600000);var vTravel = (sTravel * 3600000);If(HasValue('StartTime')){ If(HasValue('Work') & HasValue('Travel')) { // Add Time var vTo
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.