Unlock the power of Acrobat SDK through our community.
Recently active
I am having issues with a calculated dropdown box. The dropdown box (D2) is being calculated based off of the value of another dropdown (D1) on my form. For example, if D1 = "View Only" then the options in D2 should be "Does Not Need View Only" or "Needs View Only". I have been able to accomplish this via a calculated javascript (below for reference). However; my issue is when I make my selection in D2 and I click away from the dropdown box it automatically defaults to the top of the list (i.e. If I select "Needs View Only" in the drop down and click away it will jump back up to "Does Not Need View Only"). I am pretty sure it is an issue with one of the properties of the dropdown but cannot figure out which one. I have played around with the Sort items and Commit after selected flag on the options tab of the properties with no help. If needed I can send screenshots of my current configuration of the dropdown properties. Any help would be greatly appreciated!! Javascript &
Hi,I have the following Problem. I wrote a script, that creates a dropdown. The script looks like this:var aOptions = ["Apple","Strawberry","Kiwi",];this.getField("Fruit").setItems(aOptions);How can I change the script, so that the Items I created get another export Value. For example:Item = Apple; Export Value = A I hope you can understand my problem. Best Regards
Hello: I would like to have a popup menu display listing various menu options when selecting a comment. I have the popup menu working fine - what I cannot figure out is how to use a Mouse Up or other process to lanuch the popup menu after selecting the existing comment. It would be greatly appreciated if someone could point me in the general direction of how to accomplish this. Or, alternatively is it possible to add to the existing right-click menu that displays when right-clicking on a comment? Thanks in advance,Nick
Hi, i want to recreate the adobe LiveCycle form in adobe pro. in one multiline text field has a script to limit 200 words so i want to add same javascript to my new PDF form. can u pls help me to convert bellow code that works on adobe pro from. thanks.. var f=xfa.event.newText;var aWords = f.split(" ");var nNumWords = aWords.length;WordCount.rawValue="Word Count - "+nNumWords;if(nNumWords > 200){WordCount.rawValue="Word Count - 200";xfa.event.change = "";xfa.host.messageBox("Maximum Word Count Reached");}
I'm creating a PDF form using Acrobat DC. The form has five checkboxes for tests available from Laboratory A and 18 checkboxes for tests available from Laboratory B. I'm looking for a way that I can have a checkbox for Laboratory A (LabA_CB) automatically select when one or more of the available tests at Laboratory A is selected, and a second checkbox for Laboratory B (LabB_CB) automatically select when one or more of the available tests at Laboratory B is selected.However, I also need the Laboratory A and B checkboxes to deselect if all of the associated tests for that lab are deselected. The code I've tried so far either does not deselect the Laboratory A and B checkboxes even if all associated test checkboxes are deselected, or it deselects the Laboratory A and B checkboxes each time one of the associated tests is deselected even if other associated tests remain selected. I think this is because the only code I've been able to find is for the mouse up event for each of the individua
I have 2 date fields in my form. I am trying to create a third "deadline" field that calculates and displays the deadline which is 90 days from the earlier of the 2 dates. How would I do this using javascript?
I'm trying to create an equation based on some fields in my form. I don't see where the error is, but the console is telling me my output is not a number. Any help would be appreciated. var house = this.getField("SqFt");var term = 120;var margin = .0275;var wh = 0;var heat = 0;if(house.value<="1500")house=1500;if(this.getField("WaterHeater").value=="Electric Tank") wh=.03;elseif(this.getField("WaterHeater").value=="Electric Tankless") wh=.05;if(this.getField("Heat").value=="Combo") heat=.05;elseif(this.getField("Heat").value=="Electric") heat=.10;event.value = house.value*(.65 + wh + heat)*term.value*margin.valueNaN
Hello, I have a PDF with 20 options and each option gives the user to personalize the option. I am going to use javascript to populate a receipt based on the options selected. Most will select a few options but if someone wants all 20 options, I will run out of room on a single page to list out the details. Can someone point me in the right direction to spawn a new template automatically?
I've set up a form in InDesign CC, with interactive fields. I've exported it and opened it in Adobe Acrobat and it works fine. The only problem is that I want to change the font in the interactive text fields to Arial rather than Times New Roman. How can I do this?
Had to reformat Hard Drive with Windows 7 Pro. Tried to reinstall Adobe Acrobat XI Pro by going to my account and obtaining serial number. Then downloaded AcrobatPro_11_Web_WWMUI.exe to install. When prompted to enter serial number, I entered serial number from my account history. Message indicated that the serial number was invalid. "This is not a valid serial number. Tried entering serial number (24 numeric) with both hyphens and no hyphens. No go! Downloaded Adobe Acrobat Cleaner from previous suggestion and ran that, rebooted and still - error message received regarding invalid serial number. What additional steps, if any, can be done to reinstall XI Pro?
Hello ThereI am having a hard time understanding the Java Script to create a formula (Never scripted before)Let me try to explain what Im searching for since I couldnt find a solution by googling.Field 1 is the field the calculation takes placeField 2 is the field I want to be able to be edited and whos numbers Field 1 is refering to.For Example: If (Field 2) >= 100 that should give me a 1 in (Field 1)If (Field 2) >= 300 that should give me a 2 in (Field 1)If (Field 2) >= 800 that should give me a 3 in (Field 1) I basically want to refer to a specific number in (Field 2) and get a defined number in (Field 1)Like all numbers between 100 and 299 should say 1 in (Field 1)and all numbers in between 300 and 799 should say 2 in (Field 1) and so on Does a script like this exist or should I try a different method?Thx for the help in advance
Good afternoon! I have Radio Buttons in my form. I would like a certain group of fields to be seen, and the other group of fields to be hidden. When any of the "no" buttons are hit, then I would like the opposite to happen. When the radio button is marked "yes" I would like: Field 1 = "visible"Field 2 = "visible"Field 3 = "visible"Field 4 = "hidden"Field 5 = "hidden"Field 6 = "hidden" When the radio button is marked "no" I would like:Field 1 = "hidden"Field 2 = "hidden"Field 3 = "hidden"Field 4 = "visible"Field 5 = "visible"Field 6 = "visible" I've seen and tried a lot of code for the checkboxes, and I can get it to work occasionally, but I can't figure out how to apply it to the radio buttons. At one point, I did give up on the Radio Buttons and tried to use checkboxes instead, but then I couldn't get the last 4 of the 12 fields to reappear after unchecking the checkbox. Is there a limit to the number of fields a code can apply to? I went to try to copy the code to
Hello,I am using regular expressions with the "search & remove text" feature in Acrobat X Pro by editing the file SearchRedactPatterns.xml, as can be learned here: http://blogs.adobe.com/acrolaw/2011/05/creating_and_using_custom_redact/I noticed, however, that my custom queries are always treated case-insensitive in Adobe, which they should not be. At least according to various online regex testers.So, is there a way to tell Acrobat to make the Regex case-sensitive?Thanks in advance
I want to achieve something like this :Document to have 2 list boxes one filled with options and other empty and along with 1 button (add.)..I should be able to select multiple option from 1st list box and then press Add button and it will populate all the options from list box1 to list box2 all at once. Currently i have found a file on internet which does the same. but it add 1 option at a time.... when it select multiple options in the 1st listbox.. the add button doesnot work. Plz guide .. Thanks
I am trying to add a particular number at regular intervalsI have difference between 2 dates in hours so for first 24 hours result 1 ,even more than a minute to 24 hours >> result 1+.5 = 1.5 ,then again even more than a minute to next 8 hours >> result 1.5 + .5 = 2then again even more than a minute to next 16 hours >> result 2 + .5 = 2.5then again even more than a minute to next 8 hours >> result 2.5 + .5 = 3then again even more than a minute to next 16 hours >. result 3 + .5 = 3.5 and so on. In short .5 to be added after 24 hours for at every more than 8 hours & 16 hours I am using the below script but not able to achieve the above : var miles = this.getField("minutes").value; //difference between days in minutesvar hrs = Math.floor(miles/(60*24)); //capturing the hours partvar min = miles%60 //capturing the remainder minutes if(hrs ==
Hello, I am building a presentation in Acrobat and I need to be able to send form data to create an Event in Google Calendar. Everything I see says that I would need to create an API account within the developer tools of Google to actiavte the API Key. However, the users of this presentation will not be able to accomplish that task. I was hoping someone has a solution that would ask permission, similar to how this.mailDoc asks permission to send an email through Adobe without configuring Google API. Thank you.
I need to disable all navigation tools so the user is forced to navigate with buttons. ClickAdvances I see how to turn off. I also don't want them to be able to use the keyboard, mouse scroll or anything else until the page they are on has been validated and submitted.
Hi experts, I'm scripting a plug-in which is basically a SelectionServer tool called by "My ToolButton". However, it would help me enormously if I can add "My ToolButton" to the floating quick action toolbar that appears when a text is selected. I have read the documentation but I did not find anything related or maybe I'm not looking in the right direction. Any help would be greatly appreciated. Regards,Febo.
Hi,I have a signed PDF-Form "file1" that I need to mergend into another PDF "file2" that is also going to be signed later in the process. I don't need the real signatures of file1 in file2 (that doesn't work either because merging a signed PDF deletes the signatures), it suffices to preserve the signatures as textobjects in file2 (The result I'd like to have is exactly the result I get when I print file1 as a PDF (e.g. with printer "Adobe PDF"). Hereby the signatures will be obtained as texts in the printed PDF.).So I claim to have to adjust file1 before merging to file2. Because I need this for about 100x a month, it should work with a javascript-button (folder level). For adjusting file1 I had two approaches, both don't work: Approach 1: Print as PDF via javascriptI found out that there is no way to print as PDF via Javascript. Is that true? Somehow like the printparams.filename does not work with a printer that opens a save dialog on its own. Is there any other possibility
I never used Javascript before.I want to create two drop-down lists. The second list choices are depending on the choice made in the first list. Was would be the script for this use ?List 1 : Item1, Item2 and Item3List 2 : If item 1 or 2 is selected, choices must be ChoiceA and ChoiceBIf item 3 is selected, choices muts be ChoiceC and Choice DCan someone help me with a script please ?
Hi,I am trying to split a number (with 2 decimalsplace ) and separate them in before decimal and after decimal.Example: . Text1 : I have number say 25.68 , now i want it to split into two fields so,Text2 : it should show 25 Text3 : it should show 68 ,everything is working fine.. until when the number after decimal is 00 then it doesnot show correct value; below is my scriptfor Text2 calculation script :var mins = this.getField("Text1").valueAsString;event.value = mins.split(".")[0] for Text3var mins = this.getField("Text1").valueAsString;event.value = mins.split(".")[1] is there any other method to split the number where when the number has 00 in its decimal capture the 0 in Text3 .
I would like to find a way to post mutiple data in fields. I would like the fields to be "Name", "Date of Birth" and "Student#". I would also like a button to press to save this data on the PDF form. Then I would like the Name to appear in the "Name" dropdown box and when I select the name from the dropdown menu, two other fields for "Date of Birth" and another field "Student#" would auto populate based upon the data that was orginally inputted. I have been playing around and I cannot get it to work.
So, the title of my thread is very straight forward and that's what I am after... a piece of JS code that ensures me that the document IS in Reader.The reason is because I have a set of PDF documents stuffed with a lot of JS and that just get stuck when the user's browser opens it in a tab instead to download it.I kind of worked it around by adding the HTML5 property 'download' at my links declaration to force the download, however I know that not all browser versions recognizes it so once in a while I still will have someone staring to a broken document into a browser tab.I would appreciate immensely if someone could tell me if it does exist such JS code that may help me with this detection.Thanks!
Hi, I used the following script:Math.ceil(N / 5) * 5; But it's not quite giving me what I want. For instance "5" returns "10", but I need it to return "5"I need it to look like the following:0.01 - 5.00 = 55.01 - 10.00 = 1010.01 - 15.00 = 1515.01 - 20.00 = 20
Here's a stumper for you. I have been trying to create a form which can have certain fields resize to handle additional input. There are 3 different fields that can be resized by the user and then the form spawns or deletes pages to show the fields at the sizes the people have chosen. In all, there are 27 different field combinations. In order to accomodate this, I have been trying to use nested if statements. The options are simply "Small Size", "Medium Size", and "Large Size" for each field. The problem I'm running into is that the beginning option when the form loads is "Small Size" and the page shows the appropriate size field. When I choose "Medium" though, "Small" stays. Then when I choose "Large", "Medium" shows up. Then when I choose "Small" or "Medium", "Large" will show all with the proper accompanying pages. The form is showing the fields and pages of the last option that was chosen when you click the next option. Gosh this sounds insane and I hope it's not too co
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.