『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Unlock the power of Acrobat SDK through our community.
新着順
Hello, I'm fairly new to javascript and have never used it within Adobe Acrobat before so I'm pretty lost. I'm using Acrobat Pro DC and I'm trying to take the user input from two text fields and add them together to show the sum in a third text field. What I have set up is three text fields with the names of "valueOne", "valueTwo", and "sum".In the actions tab on the properties window for the valueOne field I have a trigger of Mouse Down and the action to run javascript, I wrote - var firstValue = this.getField("valueOne").value; I did the same on the second text field with - var secondValue = this.getField("valueTwo").value; Then for the third text field, which will show the sum, I'm not sure how to autofill it? I've tried something like - event.value = (this.getField("valueOne + valueTwo").value=="") ? "";It's not working - and I'm not sure how to have it just show up without using a trigger event? Any advice would be much appreciated, thank you!
Hi, all.I am experiencing near-constant crashes when creating PDFs from Word 2016 using the PDFMaker in Acrobat Pro DC for Windows.Following is the application version information (applications show as up to date): Microsoft Office 365 ProPlusOffice Version: Office 2016 32-bitVersion 16.0.6741.2048 -and-Adobe Acrobat Pro DC2015 Release (Classic)Version 2015.006.30174 -and-Windows 7 Enterprise, Service Pack 1The error messages are:Microsoft Word has encountered a problem and needs to close. We are sorry for the inconvenience. then....Word is running into problems with the 'acrobat pdfmaker office com addin' add-in. If this keeps happening, disable this add-in and check for available updates. Do you want to disable it now?The only temporary workaround I have found is:Choose Help > Repair Installation in Acrobat DC. However, that fix usually only works for the next PDF, then has to be repeated for every subsequent PDF.The docu
I need to add together two columns "Actual Hours" and "Actual Pets", then divide to get "Hours/Pet". I then need a running total for each day of the week that provides the week to date and the month to date.My goal is this: (AHMonday + AHTuesday + AHWednesday + AHThursday + AHFriday) / (APMonday + APTuesday + APWednesday + APThursday + APFriday)The average is not the same as week to date (off slightly, but very important this be accurate) and I need to account for fields being empty without sending errors for not completing the calculations. I am using adobe acrobat pro.
Hi,I want to find a method that would replace all the occurrences of a given word within the PDF file, with a hyperlink that would take me to another page on the same PDF file. I am working with Adobe Acrobat, and it appears that Javascript is needed to perform the action. I don't have a lot of experience in Javascript, so If I can get some assistance and direction, that would be greatly appreciated!Thank you!
I have set up form fields to automatically populate calculations once numbers are entered into some of the other fields on the form. Everything is working except for the last formula:var v12 = getField("Out of Pocket Investment").value;var v10 = getField("Opt 3 Monthly Payment").value;var v11 = getField("Opt 3 # of Months").value;event.value = (v12 - v10 * v11) * .75 ;Any thoughts as to why this is not working for me?
Hello, I would like to know how to automate date and time (military time) based on a previous input. Please refer to the image below.So, I would like to automate it so that when the shift supervisor has filled out the signature field, both the date and time field will be automatically filled. How can I do that? Please help!
Hello everyone. Since I don't know anything of javascript and even if I checked other posts in this community, my field doesn't disappear.So I have a checkbox called "another country" when the user selects this checkbox a dropdown menu should appear, called "select a location" with a list of other countries.At the moment this is not working and I see both the checkbox and the field.This is the script I've added:// Show/hide select a location text fieldsvar nHide = another.target.isBoxChecked(0)?display.visible:display.hidden;this.getField("Select a location").display = nHide; // Show/hide select a location text field label overlaysthis.getField("Overlay_1").display = event.target.value == "Off"? display.visible: display.hidden;Can someone tell me what's wrong? Thanks,Alessia
Here is what I have:var cFormTitle = "CF Order Investigation: ";var cAccountName = this.getField("Account Name").value;var cAccountNumber = this.getField("Account Number").value;var cToAddr = "qualityanalyst@test.com";var cCCAddr = "salessupport@test.com";if(this.getField("Radio1").value = "Yes") {cCCAddr = "salessupport@test.com";}this.mailDoc({bUI: true,cTo: cToAddr,cCCAddr: cCCAddr,cSubject: cFormTitle + cAccountName + " - " + cAccountNumber;})When I try to select OK to save it, it gives me the error: SyntaxError: missing } after property list 13: at line 14The output I would need is similar to this:To: qualityanalyst@test.comCC: if the Yes Radio button is selected I need this to auto fill to salessupport@test.comSubject: CF Order Investigation: 123456 Test AccountAny help would be huge!!! Thanks ahead of time guys
I'm a newcomer in the JS world and need to create a JS code for sending a form via E-Mail using an action button.See code below, I moreover don't have a clue how to put a text value in the subject line if a checkbox is ticked.E.g.: "required" (checkbox 1) "not required" (Checkbox 2)--> C1 is ticked --> write "required" in the subject line--> C2 is ticked --> write "nrequired" in the subject line--> both are ticked --> write "required" // "nrequired"var mySubject=this.getField("Company").value+"//"+this.getField("ObjNr").value+"//Invoice"+this.getField("iMS Number").value+"//"+ ????varbody='Hallo DM-Team,\n\nanbei erhalten Sie den ausgefüllten Antrag zur Stammdatenänderung für Personen\nsowie die benötigten Anlagen.\n\nMit besten Grüßen,\n\n'+this.getField("MitarbeiterPM").value;this.mailDoc(false,"masa@gmx.com","","",mySubject,body)Merci!!!
Hello!I'm new to javascript, so please excuse my lack of knowledge . The first field on my form can be blank or have a numeric value. That field plus about 20 others will be added together to result in a grand total. Based on what the number in that first field is, I've written a calculation script in another field to determine whether the number in that field is greater than, less than, or equal to a specific number. That's working great, except that when the form is opened, the specific number from the calculation script is showing up in that calculated field. I want the calculated field to be blank unless something there is an amount in the grand total on the form. The number printing in the calculated field (which happens to be the last field on the form) is currently -12.00 until a number is entered in any of the 20 or so fields; as soon as any of them has a value entered, I want the calculated field to begin showing it's calculated number. Could I use a validation script to do th
I'm looking for a way for a button to export a value only when checked, or to be able to export null when unchecked since the default unchecked value is 'Off'. Is there a way I can do this with javascript?
Hello;I'm looking for a script that will take a user's input of mm/dd/yy, convert the year to YYYY and copy this value to another field in the document's header. I think I almost had it at a certain point but I'm clearly lost now.Here's what I've been able to put together. Is there any way that this can be done? I appreciate your help.// convert date to yyyy and copy value to Specimen 1 Date Collected field in form headervar d = new Date (this.getField("Specimen 1 Date Collected").value);var today = new Date();if ((today.getFullYear() - d.getFullYear()) >= 100) { this.getField("Specimen 1 Date Collected Header").value = d + 100;} else { this.getField("Specimen 1 Date Collected Header").value = d;}
Hi All,Any thoughts on how to add a script in Adobe Acrobat 2017 to a text box, which will perform and show a current word count from a required amount "Say 250 words", and if this is not achieved, then show a message box saying "Word count much exceed 250"I have 4 text boxes on a form and need this to show in a field above each text box.Thank you for any help provided
I want to create a PDF that provides either content (text) or options contingent on the value chosen in a previous field. 1. First question; does this sound doable with javascript. For purposes of question one; here is a simple exampleAssume a form with 2 fields; Size and Color.For size, there are two options in a dropdown; "small" and "large"If the user selects "small", then text options for color would be "red" and "green". If the user selects "large", then text options for color would be "black" and "white". 2. Where would one find documentation on the methods available for Javascript within Acrobat. Or any documentation, for that matter?
I would like to add a action button that will allow a user to close a the current page they are viewing without asking to save.
Morning all, Apologies if this questions been asked before but I've only just recently begun using Acrobat DC. I wanted to know if there was anyway i could rename hundreds of documents by using text from within the file? Currently I have to click open the file, read the name of the file and then rename the document. Not only is this mind-numbing but is also open to human error so wanted to see if anyone had a better solution for this?Your help would be much appreciated. RegardsTej
In Adobe Reader / Acrobat after add comment and set status to "Accepted", how to get status from JavaScript API.Also can use JavaScript get "Review History" information?
I use Enfocus Switch and I'd really like the advantage of saving a smaller PDF to be emailed to my clients. I can't seem to get this as a script or an action that I can utilize in Switch. Has anyone developed this?
I can't get the JavaScript to round down to 0.5. In Excel, FLOOR.MATH(A1,0.5) does what I want, but it doesn't do so in Adobe. For example, I need 1.1 to 1.4 to round down to 1.0, and 1.6 to 1.9 to round down to 1.5. I have the formula event.value=Math.floor(this.getField("CPE1").value,.5) in Adobe, but this just returns 1.1 to 1.9 to 1.0. Any ideas?
Good morning ladies and gentlemen! I recently created an inspection report which contains various 'Year service is due' fields. When I enter a past or present year, I'd like the cell background to turn red. If I enter a future year, I'd like the cell background to stay white. I don't know how to write code but I assume I can create a java script in this case. Can someone please assist? Thank you in advance!
Hello Everyone, Our client uses Adobe Acrobat Pro DC at their office and they have a retention policy in place for the documents they keep on their systems in the office. I've written a script that sets the document info keyword field to the retention period that they've selected. Upon saving the document the user is prompted to set the retention policy with a popup. However, this only works if the "Document Will Save" event is set. It's my understanding that the JS in "Document Will Save" is set on a per document basis. I can't expect my clients to set this action on every single document they open.Is there a way that i can set this action on any document they open from their copy of Acrobat?All suggestions are welcome!Thank you so much! Bob
Hello All,I have multiple PDF's with fillable data, each form that is filled out has unique data for each person that uses it. I would like to find a way to take portions of the form and export the data to an excel sheet in a formatted manner i.e. block 1 of the pdf is exported to cell 1A and block 2 to cell 1B of the excel workbook and so on. Then I would like it to open a second pdf and do the same but add the data from block 1 to cell 2A and so on down the row. The systems that this would be run on do not allow third party software so I am limited in my potential solutions to Powershell, Java or builtin Microsoft or adobe products.Thank You for your help
I try to update another field when the user changes the value of a dropdown. For this i am listening on the blur event of said dropdown. This works fine when a different value is choosen, however when the user makes the same selection my code is still getting executed. I would like to querry the previous selection, so i can prevent this. But when the blur event is triggered the value ist already set and apparently no longer stored in the event propertys. Is there some other way i can verify the value of a dropdown has indeed changed?
I would like to drop .pdf s into a set folder that will process them to PDF/X4 automatically. Is it possible to use JAVA to run a folder this way?
Hello.I'm trying to use prepare form in Acrobat DC for the user to create their own form. Rather than lauching the tool from tools-> prepare form is there any API to lauch prepare form mode directly from JavaScript or C++? How do I programmatically get Acrobat DC to enter the "Prepare Form" mode?Thanks in advance for help
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.