Questions
Recently active
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
Here's my dilemma:I'm making an unique invoice.Sales tax is 1% for county and 6% for state. County is capped at $50. And Total sales tax is capped at $18,000. I have no experience in JavaScript. How can I set this to run automatically based on the total? And then is there a way to turn it off for when sales tax is not needed?Thanks in advanced!
I have created a fillable pdf form with a submit button that emails it. i need the form to be non-fillable once emailed. Currently, the recipient receives it filled in, but can alter the form fields as it is still fillable. Please help!
Hallo zusammenIch habe eine Frage bezüglich JavaBei einem PDF Dokument das ich gemacht habe würde ich gerne über einen Senden Button das Dokument an eine Mail anhängenIch will auf die Schaltfläche "senden" drücken und es wird eine Mail geöffnet wo der Betreff automatisch ausgefüllt wird. Im Betreff sollte die ausgewählte "Art" und der ausgewählte "Ort" stehen. Geht das so oder muss man das anders machen?Das es mir die richtige E-Mail Adresse einfügt das habe ich gerade noch geschaft für andere Sachen muss ich dann aber schon fremde Hilfe in Anspruch nehmenBesten Dank + Gruss
I have a PDF which contains the same image in the same location on every page. The image looks like a stamp with a transparent background that has been flattened into the document. It can easily be removed manually in edit mode with Acrobat Pro DC. Is it possible to automate this process using javascript or an action?
I'm needing to create a custom stamp in Adobe X Pro that show the current date (system). I am not familiar with how javascript works and all the codes that I've found online are for older versions of adobe and do not work.
I have inherited an Acrobat plugin which displays 1-n PDF pages in an offline bitmap using PDPageDrawContentsToWindow, in addition to displaying 1 PDF page in the main Acrobat window. The offline bitmap shows imposed output.This is a Windows only plugin, not targeting Acrobat Reader.Certain PDF files crash the DC SDK plugin version, but work fine in the Acrobat XI plugin version. Other PDFs are fine in the DC SDK plugin. The crash is always in PDPageDrawContentsToWindow. There is no consistency as to whether the 1st or n-th page rendered to the offline bitmap crashes PDPageDrawContentsToWindow.In all cases, the PDF page displays fine in the main Acrobat window and there is no indication the PDFs are corrupt (Acrobat does not ask to save the files, syntax preflighting passes, etc.)I have looked at the "What's new" document, but there doesn't seem to be significant changes from XI SDK to DC SDK.I have changed the plugin to wait for the AVPageViewDidDraw notification before starting to us
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.