『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Unlock the power of Acrobat SDK through our community.
新着順
plugin creation
I reviewed this tutorial: https://acrobatusers.com/tutorials/change_another_field and it works great, but I need to create 15 more drop downs to do the same thing. How do I do this? The example in the above link only shows how to create once instance.
Hello,Is there a possibility in Acrobat to add a field with a random number, which will change for each printed copy of a document. it would be perfect if such number could be then displayed as a 1D barcode.In other words, if I have a booklet of 6 pages on each page at the bottom a random number/barcode would be printed, but if user prints 10 copies each copy would have a unique number.Many thanks for any suggestions.
Kindly answer the code to find empty fields only in current page out of many page in PDF..The below code works well for all page. But i require only for current page which i'm using at that time.var emptyFields = [];for (var i=0; i<this.numFields; i++) { var f= this.getField(this.getNthFieldName(i)); if (f.type!="button" && f.required ) { if ((f.type=="text" && f.value=="") || (f.type=="checkbox" && f.value=="Off")) emptyFields.push(f.name); }}if (emptyFields.length>0) { app.alert("Error! You must fill in the following fields:\n" + emptyFields.join("\n"));}
Using Adobe Acrobat DC.A final button on page one is titled: 'Next Page: ADMIN only'.How can I password protect the button to where if a student clicks on the button, a password box would pop up (so that access to the next page is restricted to admin personnel only)?Thanks in advance!
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
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
すでにアカウントをお持ちですか?ログイン
アカウントをお持ちではありませんか? アカウントを作成
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.