Unlock the power of Acrobat SDK through our community.
Nyligen aktiv
hello, I have conga updating fields on the my pdf template. After conga, the JavaScript on the template should execute on the conga updates. Conga will update 3 check boxes and the java script should use the conga updates to update the 3 check boxes.
Hello all,I'm currently in the process of creating a form with multiple different form fields and I only want certain fields to populate, based on what action the user selects from the primary field. I have been using the following script: if (this.getField("Status Change").value == "Enter Value"){event.target.display = display.visible;}else if (this.getField("Status Change").value == "Enter Value") {event.target.display = display.visible;}else{event.target.display = display.hidden;}This script does exactly what I need it to do, but since there are a bunch of different form fields in this document, I have to manually add this script to each form field under Calculate > Custom calculation script. I am looking for an easier way to do this if possible. Thanks!
Hi (Acrobat CC)I've become stuck on an issue. Please excuse me, I'm a designer not programmer, and have struggled to find a solution.I have created a form which contains an 'on page open' javascript to fill a field with the following:var today = new Date();this.getField("Today").value = "GCF-01-" + util.printd("mmddyyyy", today);this.getField("Today").readonly = true;this performs the task I require, but I want this field 'locked' when populated, so that when the form is opened again the original date remains rather than being updated.Would someone be able to help please?MTIA Steve
Hi allI started learning javascript for acrobat but when i read some Acrobat JavaScript API Reference from Adobe i feel that is not the right place to start to develop my skills, so i need some advice to help me going to the next level, any ideas, resources paid or free its ok, thanks in Advance.
Hello,What on earth am I missing here?I don't think foo and baa and being outputted correctly with the appropriate backslashes (escaping?).when executed I need the calculate command to be applied as:"Calculate","AFSimple_Calculate(\"PRD\", new Array (\"hx\", \"rx\"))");above the represents the incrementing number that starts at 1, it is stored in the variable [inc], seen below.var targetArray = new Array("t1","t2","t3","t4","t5","t6","t7","t8");for (i = 0; i < targetArray.length; i++){var targetFields = this.getField(targetArray);inc = i + 1;var foo = "\"\h" + inc + "\"";var baa = "\"\r" + inc + "\"";targetFields.setAction("Calculate","AFSimple_Calculate(\"PRD\", new Array (foo, baa))");};Is it because foo and baa are not being pointed to their values from the 10th line?Thanks Everyone!M
When I used the following javascript , It was displaed "NotAllowedError".- this.createDataObject('output.csv', "TEST");- this.exportDataObject({ cName:'output.csv', nLaunch:'2'});I am looking many web-site , I find that I must buy something option.Is it right ?What should I buy just to do this? Or Are there anyway to do this ?Best Regards.
I have developed a pdf form with various checkboxes in Acrobat Pro. In one section, the response to a question is a YES (The form field is CBY) or NO (The form field is CBN)checkbox. How do I require at least one of the checkboxes to be checked before submitting the form. In another section, I have a checkbox for OTHER (The form field is Check Box18) with a space to enter text in Text32 (The form field is Text32). How do I require a text to be completed if the 'Other' checkbox is checked.Please provide step by step since this is foreign to me. Thanks.
created a shipping form with drop down box of ship to names but want to auto populate the facility name, address, phone etc based on whose name i select.. looked at alot of the info on java scripting this and just still confused,, can some one really spell it out and make it simple. i cannot load additional sofware due to system being admin locked down so have to work within adobe acrobat.. thanks
I have an alert in document-level that opens if a certain button is not hidden and then when that button is hidden, the alert doesn't open. So that works fine but when I tried adding a second alert, I get issues. What I'm trying to accomplish is there are two parts to a pdf form (PART I and PART II). If part 1 doesn't have a button hidden, then an alert will pop up when the document is opened. After part 1 has been digitally signed, the button will hide and that alert won't popup anymore but a second alert will pop up if part 1's button hidden AND part 2's button is not hidden. Once part 2 has been signed, part 2's button is hidden and no more alerts should pop up.It all works up to the last part. The second alert still pops up even though both buttons are hidden. Here's my code:var VerifyPartI = this.getField("Verify PART I");var VerifyPartII = this.getField("Verify PART II");if (VerifyPartI.hidden == false){if(app.alert("Inputted text",2,1,"T
How do I reference a text field in a javascript calculation, example: var HR = (55-20); event.value=Math.pow(HR,0.54); Where 55 references a Field name?
Is it possible to embed javascript in a DPF so that when the print action happens it either (a) Closed the PDF which is being printed and deletes the file or (b) Watermarks the PDF and closed Adobe thus saving/overwriting the PDF which was printed?
Hi,I have a fillable form PDF that has multiple similar pages. I want to be able to add more pages for entry if the user needs it, but not have the document be tens of pages long.if the user doesn't need that much space.Someone had suggesting using method spawn for this; I tried it, but I found that my form field names changed so that radio buttons were no longer linked etc. And that it would always add to the bottom of the doc, whereas I'd want it directly after the template page.So instead, I'm hoping to add hidden pages to my form. I want my users to be able to click a button (or a checkbox, or a radio button, or whatever) at the bottom of the template page that will unhide the next page so it can be filled out. Is this possible?Thank you!
Hi,How do I create a pdf form where when I check, CheckboxA, a dropdown named DropdownA appears and when the checkbox is not checked, that dropdown is hidden?Thanks!
reI am converting an IRS schedule from pdf to WORD. When I do this the WORD document created is pretty good, however, there are small "a"s on every page to the point I can't find them all. I have to send the schedule to the IRS and I don't want to take a chance they won't except it because I missed deleting some of the "a"s. Also when I delete them some of the amounts shown on the WORD document jump to a different place so I can't use the document anyway. When making the conversion from pdf to WORD, what can I do to eliminate the "a"s?
Hi. Im trying to extract the x.y coordinates of any word/number matches in the pdf. Below is the code i am using. This works great for words like "California" but when i use numbers with symbols like 3.0-234 this doesn't work. Please help as this is very urgent for me. (I have tried giving 'false' in the 3rd parameter of getPageNthWord but still doesn't work)for (var p = 0; p < this.numPages; p++) { var numWords = this.getPageNumWords(p); for (var i=0; i<numWords; i++) { var ckWord = this.getPageNthWord(p, i, true); var num = 'California'; var n = num.toString(); if ( ckWord == n) { app.alert("Mouse position is: " + this.mouseX + "," + this.mouseY, 3); } } }
I would like to find a means to cause a script in DocA to open a specified folder, after which the user would select one of many fdf files in that folder to import into DocA. (The file name is not known when creating the script.)When I execute the following script in a mouse up action I receive a privileged status warning asking if I trust this site, but when I click "Allow" nothing happens, and placing this in a privileged folder level script does not seem to work either.var parentPath = this.getField("txtL.Path.Parent").valueAsString;var agentFolder = this.getField("txtL.Folder.Agent").valueAsString; this.importAnFDF("" + parentPath + agentFolder);Can I do what I want to do? If so, how?
On my PDF I have one form field where someone can input a hex code and to the right of that I have another box. If possible, I would love to use Javascript to make it so when someone inputs a hex code it changes the fill color of the box to the right with that color.Here is a screenshot of my PDF:I'm not sure if this is possible, but fingers crossed it is Important to note I have a very basic understanding of Javascript.Thank you for your help,Eric
I am looking for something specific and have been unable to find it on the forums. I am not even sure if it is feasible. It isn't a requirement, it is a nice to have.Basically I have a 3 page form that I created to assist those submitting requests to me to do them consistently and help mitigate the potential for inaccuracy. It is a fairly simple form and I found some answers on the forums that helped me get it about 95% there.Basically I would like something where the Total Cost box (on page 1 which is derived from a sum calculation from fields on page 2) will be divided by the number of fields with information entered in them from page 3 and show the results in a dollar value in the field Per Person Cost on page 1.I have 38 total fields with two different naming conventions on page 3 that need to be included in a script.PRINT NAME1 (it goes to PRINT NAME30PRINT NAME 1_2 (it goes to PRINT NAME 8_2)Hoping I have explained myself well enough. To summarize:Basicall
Can someone please help me with this question? I am using this code to expire the document on a specific day and year. What occurred to me and is the reason I'm asking this question, can this script be modified to expire on a specific day and year but also expire on any date prior and any date passed the specific date. Example, to expire on December 25, 2017. If the user tries to change their computer's calendar to, let's say, 2016 the document would still expire.This is the script I'm using and works ok, but I'd like to modify it to make it more difficult to bypass even if the user turns off "Enable Javascript" or sets their computer back.function Expire() { // Get the current date and time var rightNow = new Date(); // Setup End Date var rightNow = new Date(); var beginDate = new Date("March 21, 2016 06:15:00 AM"); var endDate = new Date("March 31, 2017 1:57:00 PM"); this.closeDoc(true) } } // execute check expiration code Expire();
I have two sets of radio button R1 and R2 and a check box......I want to function them as below:If R1 has two Option Yes or No so if one selects "yes" here and checks the Checkbox then the same "Yes" should be automatically selected in the R2 similarly if in R1 set "No" is selected then R2 should also be "No". Else if check box is not selected.. both Radio buttons can be independently selected .I tried it with the following script but it didnot worked:if (this.getField("Checkbox").value == "Yes"){this.getField("R2").value = this.getField("R1").value;}Thanks in advance
I couldn't find the answer so I gotta ask for help. I have a few fields that are populating when I click a check box. What I'm trying to accomplish is to show certain fields only when certain fields are populated. Otherwise to hide the fields when the fields are unpopulated. Is there a javascript that would help me do this?
Trying to create a form, where if they check "Yes" or unchecking of "Yes" would also erase/hide the "A_Comments" box.My issue is; if I uncheck "yes" the A_Comments field remains visible. Checking "No" does hide and blanks out any content.I have the following code on the "Yes":this.getField("A_Comments").display=display.visible;and this on the "No":this.getField("A_Comments").display=display.hidden"A_Comments" field has the following text Field Properties:Properties/General/Form Field: HiddenAny help would be appreciated.Regards,
I've created an editable pdf (timesheet) that performs calculations based on user input for each row. The calculations work correctly when opened via Windows Desktop but not on mobile for either IoS or Android. Any thoughts?
I am a single user mainly of the creative suite but also Live Cycle and Acrobat Pro.There are various 3rd party email mail merge programs (like PDF Machine Merge) but which, if any, Adobe product manages this process?JohnB
Hello, How can I execute the embedded javascript inside a pdf?I'm using the default WPF WebBrowser control to view a pdf. Here's the XAML:<WebBrowser Name="_web"/>In the .cs I do this to view the .pdf:_web.Navigate("test.pdf");Everything works great. The test.pdf has a javascript method called "IsComplete".How do I call the IsComplete method? I have Adobe Acrobat DC Pro installed.
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Har redan ett konto? Logga in
Har du inget konto än? Skapa ett konto
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.