Questions
Recently active
Can I learn JavaScript for HTML and use it to customize forms in Adobe Acrobat?
HiI have the following javascript in a button before a form is ready for signature which is working, which I have found on various forums. However, I need to include 2 more items1) to include checks on dropdown lists if they are visible and required, the default value of these dropdown lists are "SELECT ITEM",and2) if possible I would like to have an additional message displayed if a certain checkbox called divur1 is not ticked before displaying the main message which is included in my script belowvar 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 t
I was tasked to rename some textfields, checkboxes, radio buttons and dropdown fields in a working Fillable form. The only thing I did was to add prefixes to the original name and update the javascript codes of fields (replace old field names with new ones).I got a feedback saying that only a few of the calculations work and majority isn't working anymore.I didn't create this form and haven't used it even once. How do I identify what went wrong and what fields to look at?Thank you in advance.
I delete page when process data, i want close document not save. This my code: Dim oArobat As Object oArobat = CreateObject("AcroExch.App") oArobat.Show() Dim oDoc As Object oDoc = CreateObject("AcroExch.PDDoc") Dim oAVDoc As Object oAVDoc = CreateObject("AcroExch.AVDoc") If oAVDoc.Open(strWorkFilePath, "") = True Then &
Hi. I'm creating a fillable form and I'd like to allow the user to pick a date using the date field which will then auto-populate a field next to it with the corresponding day of the week. I tried to do a custom format in the properties which seemed to work fine on my computer but would error when filling it using an iPad. (Form will most of the time be filled out on an iPad). I've been searching forums and other pages for an answer however I have absolutley no JavaScript experience. I'm also finding it a little hard to get started on my own. Any assistance would be great or referral to an appropriate resource. Thank you so much.
Hi all, i need to send via email only selected pages of a 86 pages PDF form. How can I do it with Java?I tried different approaches such as bulding a code for extracting and sending but I am able to exctract only a range of page and not selected pages.I need to send page 0 and this.numpage in the form thanks
I am using this bankers rounding script as a document level script that I found online, Gaussian/Banker's Rounding in JavaScript · GitHub . It works well except it's rounding weird when working with numbers with 3+ decimal places. For example:55.85 rounds to 55.8 (correct)55.850 rounds to 55.8 (correct)55.851 rounds to 55.9 (incorrect)55.8501 rounds to 55.9 (Incorrect)Here is the script:function bankersRound(num,decimalPlaces){ var d = decimalPlaces || 0; var m = Math.pow(10, d); var n = +(d ? num * m : num).toFixed(8); // Avoid rounding errors var i = Math.floor(n), f = n - i; var e = 1e-8; // Allow for rounding errors in f var r = (f > 0.5 - e && f < 0.5 + e) ? ((i % 2 == 0) ? i : i + 1) : Math.round(n); return d ? r / m : r;}Any idea how this could be fixe
I have a PDF file as below image:I want export 2 Pages to 2 Images:With Acrobat Script or COM : Can export a Page to a image ? and Can it remove white area?Thank you.
Jeg har installeret/hentet den seneste NemID signatur.NemID skriver :Vær opmærksom på, at NemID-supporten ike kan hjælpe med, hvordan du signerer i det enkelte program, fx Adobe Acrobat eller Word.
I'm new at this and I'm currently working on a document in Acrobat Pro DC where I want to have a portion of the document hidden until all of the required fields are filled with any value. So far, I've only found resources on how to use a check box (or something similar like a button) to hide/show the additional portion of the document. This is what I'll end up doing as a last resort, but it's not ideal since the user will be able to toggle it on/off at any time, and my preference is for them to be able to do so only after all the fields are filled out.My basic understand from using IF AND statements in Excel leads me to believe that should is a relatively simple script, but I haven't found any tutorials or examples of this scenario using JavaScript in Acrobat Pro DC. So any resources you can point me to would be appreciated!
helloi want to use a custom keystroke script or code to make this function:the ( : ) will insert automatically after i enter the first 2 digitshow to do that by javasciptthanks
Hi - I am brand new at this... Please be gentle.I have an Acrobat form with a persons name in two fields. (First name and Last name) I would like to automatically create a third read only field with just the first letters of each name.Any ideas? Thanx
When printing PDF files there is a thumbnail of the document displayed. If it is a color document and you want to simply print it gray you can use the Advanced settings and change the Color from Composite to Composite Gray. When you do this, the thumbnail in the Advance window changes but the thumbnail in the Print window does not, it always shows color.So, because Acrobat remembers the setting from the previous print job, if you print a new color print it will print gray also. It could be hours between prints so you would not remember that the previous print was forced to gray. Because the thumbnail in the Print window always shows color you can't know for sure that the Color selection in the Advance window is not set to Gray.If the thumbnail in the Print window was the same as the thumbnail in the Advance window (it reflects the Color selection: Composite or Composite Gray) the user could know before sending a job what the print results will be. As it is now, you have to look each ti
Sir / Madam,Is there any way to change the color of the Strikethrough made in the Text Field.Currently after making the Rich Text Enable for Text field... the strikethrough color is same as the color of the text.....I want ... for ex- color of text to be black and color of strikethrough to be Red.thanks
When I go to publish a PDF for shared review, Acrobat is looking in my contacts card (in Users & Groups) for addresses. How can I get it to look in my MS Outlookcontacts?
Hello, all,I have a pdf form which contains fields for all my clients' contact details (Name, Address, Telephone, Email, Website, Instagram etc). Thanks to a LOT of help from this forum, I have set it up so that all of these fields are populated when I select the company name from a dropdown list. The data is stored in a tab-delimited file at a fixed, specified location on my hard drive. (oh, I'm on Acrobat DC).What I'd REALLY like to be able to do, is attach the .txt file to the pdf itself, so that it doesn't matter where I move it to, it will carry its own datasheet around with it.The script I use currently to get the data from the txt file is:var Trusted_readContactDetails = app.trustedFunction(readContactDetails);function readContactDetails(){app.beginPriv(); var oFile = util.readFileIntoStream("/Macintosh HD/Users/somefoldernames/morefolders/InvoiceContacts.txt"); var cFile = util.stringFromStream(oFile, "utf-8");
I have a percentage field where the decimal place needs to be moved. When you type in 20 the decimal place value shows 2000% (i.e. 20x100%). You have to type in .20 to get the field to show 20%. That doesn't flow well with this form, where the rest of the percentages are represented as numbers with 2 decimal places (20.00).Does anyone have the code to fix this?
I'm new to JS, learning as i go, and i'm stuck on this one. Hopefully someone could help?This is the script I currently have:var fieldsToLock = ["Text2", "Text1", "Text3", "Text4", "Text5", "ComboBox6", "MRcheck", "CustomerCheck", "Other2check", "SubCombo", "RadCombo", "ProcCombo", "ForCombo", "BackCombo", "BordCombo", "MounCombo", "Text39", "Text7", "Customchk", "exttypecombo", "extforecombo", "extbackcombo", "extlogocombo", "extchevcombo", "exttapercombo", "extmoutcombo", "extSSchk", "extDSchk", "extaddition", "Text32", "decRadCombo", "decProcCombo", "decBordCombo", "decText39", "Text41", "UpholsteryCombo", "Fencelength", "fencebetween", "Text47", "Text48", "Text6", "Text8", "CheckBox9", "CheckBox10", "sizefield", "sizefieldother", "sizefielddec", "Text10", "Text11", "Text12", "Text13", "Text14", "Text15", "flatSSchk", "flatDSchk", "heightdecfield", "heightotherfield", "heightfieldflat", "bannerheight", "Text41", "fenceheightfield", "ReflectivityCombo", "OverlayCombo", "Text1", "decF
Hello, I am working on a form where once one checkbox is clicked, I need it to automatically check another box. My issue is I need the checkbox that would automatically be checked to have the capability to be unchecked without unchecking the first checkbox. Is this do-able?
Hello everyone,Management wants me to create a form with two columns that can "interact" with one another. The first column is a code column using 'list' boxes with options 1, 2 ,3, O, and X. This column is titled "Code" and each box is titled "List Box 9" and the list continues to "List Box 21". The second column is just a comment column that is not required unless the option 'X' is selected in the first column. This column is titled "Repair Comments" and each text box is titled "24 Repair Comments 9" and the list goes on to "24 Repair Comments 21". Management wants the boxes in the "Repair Comments" column to be required if 'X' is selected in the list boxes under the "Code" column.For example:If "List Box 9" is blank or has codes 1, 2, 3, or O, then the text box "24 Repair Comments 9" should not be required to fill out. However, If "List Box 9" is changed to an 'X', then "24 Repair Comments 9" should turn into a required field.Is this possible? Would I enter this as a validation scri
Hi all,You helped me tremendously with this script earlier, but I found one error I made I have to halve the first field and use the mathfloor here before continuing operations. I thought it was an easy fix and may be, but I am missing it. This is the change I made.event.value = Math.floor(Number(this.getField("g1p1resources").valueAsString) * 0.5 * Number(this.getField("g1p1multiple1").valueAsString)); I moved the *.05 from the end to just after the first statement. Running it through the console it says it is right, but the calculation for example for 5*.5*2 comes up 5 when it should be returning 45 halved is 2.5 rounded down to 2 * 2 = 4I am really rusty on my javascript haven't used it in years and trying to get back in is proving to be a bear. Thank you for your help.
Hi all,I know I am missing something, but can't quite figure out what. I am just trying to round a field down using the math.floor command I am certain I have the syntax wrong somewhere. Here is the script the calculation is working perfectly, but it is always rounding up.event.value = ( this.getField("resourcesRow1").value * this.getField("g1p1multiple1").value )*.5;event.value = math.floor("g1p1resourcestotal");Thanks for any help.Regards,Larry
I have input a script for a field to fill in 3 others depending on the value entered in one. I keep getting an error saying syntax error ) is missing after condition 1 in line 2.Here is the script. I have tried placing a second ), but that is not working.I am missing sometthing, but can't figure it out.if (Player 1 Lvl.value=="1") { this.getField("Player 1 Multiple 1").value = "1"; this.getField("Player 1 Multiple 2").value = "2"); this.getField("Player 1 Multiple 3").value = "3");if (Player 1 Lvl.value=="2") { this.getField("Player 1 Multiple 1").value = "2"; this.getField("Player 1 Multiple 2").value = "3"); this.getField("Player 1 Multiple 3").value = "4");if (Player 1 Lvl.value=="3") { this.getField("Player 1 Multiple 1").value = "3"; this.getField("Player 1 Multiple 2").value = "4"); th
Hi All,I am creating a form in Adobe Acrobat Pro. I want to set a minimum number of words (50) in a text field named 'Business Description'I want also to make sure that before saving the form user either wrote 50+ words in that field or that filed has not been completed at all (0 words).Can I apply those restrictions using JavaSpript? Your help is very much appreciated.EMil
I have a form with multiple signature boxes. the form has a sequence, someone has to fill a specific text Boxes and sign and send the form to another person to fill the rest of the text Boxes and sign. I need a java script that when the first person sign, some Boxes enabled and some boxes disabled.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.