Unlock the power of Acrobat SDK through our community.
Recently active
Can someone tell me if I can modify this code or if I need to use a different one? I'm using this script to formulate different text fields into one text field. It works fine but I'd like to format the text a bit. I'm using Centered (but that doesn't have anything to do with anything). I'd like to be able to double or even triple space in the destination field. When I hit the Return key the text moves down but as soon as I click outside the field the text jumps back up and doesn't allow me to format the lines of text as I would like. Or to even type in additional text into the field. What I did to get around that, is I created an additional text field that I can type into it (see my example script Text31). Here's the script:event.value = this.getField("blank").value + " \n" + this.getField("WeInstall").value +"" + this.getField("TotAllFootage").value +"" + this.getField("Of").value + this.ge
My software makes hundreds of bookmarks in a hierarchy. We want to open the bookmarks bar in a collapsed state showing only the first level bookmarks. Is there a js - app.execMenuItem type command or any other to do this?
Hi all. I'll try to keep it as short as possible.Part1Have a form, where Submit button executes JS for two things:1. ensuring one required CB is ticked before submitting2. extracting email(s) associated to CBs, where each CB export value is an email address, and all CBs have the same nameSubmit button >Mouse Up event > Run JSvar fields2 = ["Check Box1.0"]; var addresses2 = []; for (var i in fields2) { var v = this.getField(fields2).valueAsString; if (v!="Off") addresses2.push(v); } if (addresses2.length<1) app.alert("Select one Check Box.",1);else{var fields = ["email1", " email2", " email3", " email4", " email5", " email6", " email7"]; var addresses = []; for (var i in fields) { var v = this.getField(fields).valueAsString; &nbs
Hello,I'm not a coder and I don't know JS, but I already put some JS in my form to set the date automatically to the date of the day. I'm sure there is a way to set a button to perform the action of using the email address in a textfield of a form and then send a copy of the filled form (flattened would be perfect) to this specific email address.The usual way I'm using, many micro actions, is to click on the textfield, select all, copy, share/open with, share a copy, select Gmail as mail app, paste the email from the textfield in the recipient and send. There is 8 actions, always the same.Could this be performed in one single button with JS, compatible on iPad and/or android Acrobat Reader application ? Thank you !
Hi!I need to add leading symbol * in a numeric field.Numeric field length is 10. If enter 15000,the result will be *****15,000.Please help me out. Thanks!
Who can give me a simply example for using js script to realize create annotation in 3D object in acrobat file? Thank you !
Please provide any insights to the following question. In trying to sign and date a w-9 I get the following message. "This form cannot be edited in Adobe Acrobat DC. Please use Adobe Lifecycle Designer." How do I get this document dated and signed without buying Lifecycle Designer?Thanks,Rick
I'm working on a RPG character sheet..I'm trying to calculate a characters total armor class..I have all the fields set up and labeled..The total AC bonus = 10 + DEX mod+ proficiency bonus +item bonus..I have a field that already calculates and generates the "DEX Modifier" field.The problem is, if you wear a suit of armor it allows you to add your Dex modifier to the ac totalBUT only upto the armors max..Let's say you wear leather, it allows you to use only +4 max bonus.So if I have a Dex mod of say +5 it needs to only add the +4 ..My fields in question is "Dex modifier","Ac Dex modifier", " ac Dex modifier max"I've tried var A = this.getField("DEX Modifier").value;var B = this.getField("ac Dex mod max").value;If (A>B) {event.value = B}So if ac Dex mod = Dex mod,But if the Dex mod is greater than the ac Dex mod max, the Dex mod @= ac Dex mod maxAny help is greatly appriciated
Hi everyone, I have a PDF form that I've created for my team to help make creating contracts easier. Essentially what it does is it has a bunch of form fields on page 1 that fill in all the appropriate information on all the other pages. I've then created buttons that print just the pages we need, which vary for different people. This system works great for printing, but I'm trying to come up with a better solution for saving. Here's what I want:On a button press, a certain set of pages should be extracted from the PDF, flattened, and then a Save As prompt should appear. But I haven't been able to figure out how to apply scripts to the extracted pages, instead of the original. For example, if I use this code:this.extractPages(1,3);this.flattenPages();app.execMenuItem("SaveAs");then the pages are extracted correctly, but the original PDF is then flattened and saved, not the new extracted PDF. This is what I've been doing as a workaround:this.deletePages({nStart: 4, nEnd: 7});this.delete
Trying to select a file and get the ASPathName of the file. There was a sample in PDF Binder to do so but it only allow you to choose folder instead of a file with AVAppChooseFolderDialog method.
I am trying to convert an Excel expression/formcalc script that essentially divides the totals of two fields provided on a PDF form. One field may include a total entered on a another page. The formcalc script I am currently using works, and is listed below. Is there any chance someone might be able to help me with converting to javascript? Thanks so much!if(Page1.Total_undupl ne 0 & HasValue(Page1.Total_undupl)) thenTotal_al_instr / Page1.Total_unduplelse nullendif
I have 36 Adobe documents with roughly 2500 pages in each one of them. I need to export the pages out of each one of those documents based on a list of identifiers I have in an excel sheet that would show up on the pages in the pdf. Please help
I'm having some issues with this script. I've used it successfully, but slightly different than this version. I have confirmed each checkbox has a export value, but I can't get it to display the checkboxs' export value within the text field I have it assigned to.I'm using this in the "custom calculation" section:var ybl = this.getField("Length.Youth").value ;var abl = this.getField("Length.Adult").value ;if(ybl <= 31) { event.value = (ybl.value) ;}if(abl >= 32) { event.value = (abl.value) ;}
Hello,I am trying to create an employee evaluation form. I'd like the calculated field to be the sum of the check boxes then divided by the total number of categories (6). Eachcheck box has the appropriate export value according to the rating (1, 2, 3, 4, 5).So if an employee was rated all 5s across the 6 categories they would average out at a 5. (5 rating x 6 categories / 6 categories). Any help on how to accomplish this would be appreciated. Thanks in advance!
Believe or not but I couldn't find the answer. I have two fields. Field1 and Field2. Field1 calculates. If and when Field1 is populated then I would like to show and populate Field2 with a phrase, not the total from Field1. Then if Field1 is not populated then to hide and reset Field2. Can someone help me solve this? Thank you all.
I currently have an 8 page PDF form and at the end of the document I would like to have a button that would export / save, as one long PDF page. Is this a possible?
I have a submit button on the form I'm creating. 1) After researching various examples, I have the following JS set up: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.valueAsString==f.defaultValue) emptyFields.push(f.name); }}if (emptyFields.length>0) { app.alert("Error! You must fill in the following fields:\n" + emptyFields.join("\n"));}It seems to be working but it still allows the document to be sent by email after clicking OK on the warning window. Any ideas on how to fix that? Ideally, I would like the user to be returned to the form to finish completing the document.2) Is there a way to send the form in a read only format without changing it for the user? I'm noticing in my tests that when I have t
Hello All,I am attempting to create a simple dialog box with a dynamic number of checkboxes. My goal for the dialog box is to take a number the user selects beforehand (in a separate dialog) and create that many checkboxes. I can successfully prompt the user to enter the number of checkboxes desired, but I'm having difficulty looping through the "initialize" and "description" properties of the dialog box to create the desired number of boxes.Any help you all could provide would be appreciated.Thanks in advance.
This should be pretty easy. I made a drop down with rather long entry listings. The selection from the drop down shows into a text field (multi-line). What I wanna do is control how the text flows in the text field. I wanna break the line of text where I want it to break to the next line. In essence making a double space or single. I've tried placing the \n and \r in the drop down listing but that didn't do anything. So, I was wondering how that would be done (or even if it's possible). Can someone help me figure this out? It's driving me a little more nuts. Thanks.
Hello all, I really hope someone can help me with this issue. (I'm not a hugely well-educated javascripter, so please feel free to assume zero knowledge in your responses...)(I'm running Acrobat DC)I have a form that contains a LOT of fields. the form is called "front.pdf". The fields are arranged on it in 32 rows of sixty fields (I know: that's a LOT!). Each field is named as follows:A.01, A.02, A.03, A.04 ... up to ... A.59, A.60B.01, B.02, B.04 ... => ... B.59, B.60The rows go up to Z, then AA, BB up to GG. (All rows go from 1–60)There is another pdf form, called "back.pdf" that is attached (as an attachment) to the first. It contains the same amount of fields, named exactly the same way, the only difference on this one is that the rows run from 60 down to 1 rather than from 1 up to 60.Each cell, on both forms, will have a value that is either empty: ("",) or the lowercase letter Z: ("z").I'm trying to write a script that, when attached onMouseUp to a button on the parent pdf (fr
Acrobat DC Pro on Win 10 Pro.I have created a dynamic stamp and called the file "Receipt.pdf". I want to use it to signify that my invoice has been paid by my client.There are two text fields, one above the other, the first to show the current date and the second field I want to generate a dialogue for me to insert particulars of the payment, e.g., a cheque number or other identifier.When I apply the stamp to the pdf invoice, the date field works fine, but no dialogue is generated. So the stamp appears with the current date and a blank space beneath it.The "custom calculation script" for the date field is:event.value = (new Date()).toString();AFDate_FormatEx("dd mmm yyyy");The script for the dialogue field is:var cAsk = "Enter Receipt Details" ;var cTitle = "Receipt Details" ;if(event.source.forReal && (event.source.stampName == "#Receipt")){ var cMsg = app.response(cAsk, cTitle); event.value = cMsg; event.source.source.info.exhibit = cMsg;}I am ignorant about
I am moving value ‘x’ to a combo box field. If the value ‘x’ does not exist in the combo field, will it trigger some sort of value that can be used to determine ‘x’ does not exist in the combo box field?var x = “ABC123“;this.getField(“Combo Box-myfield”).value = x;
Hello everyone, I'm trying to create a group of fields that would have pre-populated text in the export value. Then combine those fields into one, which would make a complete sentence (or paragraph) of those field values. For example, Field1 would have "We propose to install". Then in Field2 would have the (total footage) "of 8' high CLF". In Field3 would have the total footage then "8' high WIF". In Field3 would have pretty much the same but this would be "of 8' high Wood Fence". Giving me the choice to show/hide the particular fields.Is this something that can be done using javascript? I don't know enough but I'd like to learn. Or, does anyone know of a way to accomplish something like this in a PDF. I'd like to create a short cut to be able to put the combinations into a job description. If you can show me how to create the first one, then I can do the rest. Thank you all so much.
in my digital forms using pdf expert on ipadi have ( submit by email ) button with mailDoc, mouse up run JavaScript actioni added another mouse up actionif(this.getField("CAP1Signature").value !=""){this.getField("CAP1Signature").readonly = true;}////if(this.getField("CAP1Signature").value =""){this.getField("CAP1Signature").readonly = false;}to make the a signature field is readonly if the field is already signedand (not) if the field is still blankto ensure that the file will send with readonly signatureand also make a chance for the user if he forgot to sign before click on the buttonmy script is working half or the other halfi tried alsoif(this.getField("CAP1Signature").value !=""){this.getField("CAP1Signature").readonly = true;}else{this.getField("CAP1Signature").readonly = false;}i got the same resultany help please !?thank you in advance
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.