Unlock the power of Acrobat SDK through our community.
Recently active
I am very new to this but trying to learn. The task I've been given is this:Have a button on a page that when pressed will open a custom dialog with 4 buttons.Each button should open a different external pdf file in a new window.I feel like it's getting close but just can't get there. Any and all help will be greatly appreciated!var Dlg ={ description: { name: "Select File To Open", elements: [ { type: "view", elements: [ { item_id: "Header1", name: "Select Document To Open", type: "static_text", }, { item_id: "Button1", name: "IOM", type: "button",Button1:function(dialog) { app.openDoc("/IOM/IOM.pdf", this);}, }, { item_id: "Button2", name: "Submittal", type: "button", }, { item_id: "Button3", name: "Owner's Manual", type: "button", }, { item_id: "Button4", name: "Test & Balance", type: "button", } ] }, { type: "ok",ok_name: "Close" }, ] }};app.execDialog(Dlg);
I found the script below on this site and I would like to get it working for me to see if it's what I'm trying to accomplish. I have it attached to an mouseUp action of a button and it pops out a window. I click to open a file and click OK and that's all it does. No opens any file. Would someone take a look at this script and show me what's wrong or what's not right? I sure would appreciate it. I just wanna see it, I feel it's so close to working. Thanks, folks.The script:var docTypevar Dlg ={description:{name: "Select File To Open",elements:[{type: "view",elements:[{item_id: "Hdr1",name: "Select File To Open",type: "static_text",},{item_id: "Btn1",name: "File1",type: "radio",group_id: "rdgp",},{item_id: "Btn2",name: "File2",type: "radio",group_id: "rdgp",},{item_id: "Btn3",name: "File3",type: "radio",group_id: "rdgp",},{item_id: "Btn4",name: "File4",type: "radio",group_id: "rdgp",}]},{type: "ok_cancel",ok_name: "Open"},]}};commit:function (dialog) { // called when OK pressed &nbs
I have various annotation elements that have a State set using the transitionToState method. I want to remove all state(s) from an annotation using JS, however I can't see any method in your SDK manual that allows you to remove State information?ThanksSimon
I need to place a JavaScript in Document Actions in a PDF form filler I created. I have created several fields that I listed as "required fields" in the form. I was hoping that I could insert a Script that will return a message informing the user that they have not filled out all of the required fields when they try to click Save as or Print. I have the document saved as a read-only. It is my intention that the user will not be able to save a copy or print a copy of the document until they have filled out the required fields.P.S. You would think that it wouldn't be very hard to remember to fill in your address and phone number but here we are.
I know I have seen this post but nothing is as specific as I need it to be and I know I am doing something wrong. I made this form in Word and transferred it over to Acrobat Pro DCIn the drop-down box (Emergency Landing / Crash) I have 3 options. When I pick one, I am trying to get a new fillable PDF form to appear. I have each form needed on the same PDF page. This is one of the forms that I need to "appear" when I click one of the options:So I've Inserted the JS into the Validate area:if (event.value == "Emergency Landing / Crash Form"){this.getField("form1").display = display.visible;this.getField("form2").display = display.hidden;this.getField("form3").display = display.hidden;}else if (event.value == "Incident at Aircraft Destination Form"){this.getField("form2").display = display.visible;this.getField("form1").display = display.hidden;this.getField("form3").display = display.hidden;}else (event.value == "Medical Emergency Form"){this.getField("form1").display = display.hidden;thi
Can someone help me out with this one? I would like to import a text file (which has names, addresses, city, state, etc) into a text field in a pdf doc instead of copying and pasting the info. I've seen similar scripts but for the life of me, cannot find them now. Does anyone know the javascript that will get the job done? I'd like to create a button and when clicked it would show the files on the desktop available to import into the pdf doc text field. I would appreciate an example if you know. Thanks so much.
Hi, I work on ACROBAT DC forms and I don't control JS language. I want to hide or show pictures on the same pdf file depending on the user's score…Thank for links or advice to help me !Steph.
Good evening, I am wondering how one can call a folder level action in Acrobat from C#? I know it is possible, I just do not know the code used to call said functions?Any help would be wonderful!
Hi Guys,I wanted to know, Is it possible to create a Javascript Function based calculation for a timesheet that also includes amount of people working during that time period.Example.StartFinishNumber of workersTotal HoursStart1.0Finish1.0Workers1.0Totalhours1.0Start1.1Finish1.1Workers1.1Totalhours1.1Start1.2Finish1.1Workers1.2Totalhours1.2My function would be something like CalcHours() ….. which would yield something like would calculate like this (Finish1.0 - Start1.0) * Workers1.0your helps would be greatly appreciated.
Good evening, I am trying to figure out if it is possible to invoke a JS file on a PDF, from a windows batch process? We are trying to see if it is possible for us to process documents outside of Acrobat.Any help is welcome!
Hello,I want to Create PDF3D from OBJ format, but I don‘t want to concert it manually using adobe’s 3D toolkit.Is there a way to convert it to u3D automaticall? Using code or advanced software that can do this faster the 3D toolkit?I‘m using version 18.9.20044.251705
I have a form field, Zip Code, that I would like to export as text when I export the data onto a CSV file.This information will be uploaded into an access database that already has the zip code field notated as "short text".When I format it as zip code, or zip code + 4, the exported value is a number (leading zeros are dropped). There doesn't seem to be an option to format it as text, and support was no help. Is there custom formatting script that will allow me to do this?Is there a way of creating another type of field that will allow for text as an option?Thanks!
Hi. I am new to the forum.I have a simple javascript in a main pdf document (General Forms). The script creates a device independent path to second document and opens the document using app.openDoc.The script is as follows:str=this.path;FirstStringLength = str.length - 22FirstString = str.substring(0,FirstStringLength);app.openDoc({ cPath: FirstString + "/Test General Forms/Basic Lift Plan Form.pdf", cDest: "Forms TOC" });The script works fine on my personal computers (Windows and Mac). However, when I try it in a networked office environment it issues the error:NotAllowedError: security settings prevent access to this property or method.App.openDoc: Field General Forms: Mouse Up.The Javascript reference manual does not state any security issues with the openDoc method.Any help? Please. Jim
Apologies if this has been asked before.I have two fields where the inputed numbers needs to equal 100%.For example, if a user enters 30% into field A, field B should generate 70%. The fields cannot exceed 100%.Thanks for any help in advance.
Hi everyoneHoping one of you can help me please....I have a pdf doc which is a questionnaire with a drop down list of responses for each answer (Yes, No and Partly). I then have a summary page at the end which counts the number of answers and calculates the percentage against each answer, i.e. Yes 34% No 23% Partly 43% ( i have a field for each of these). What I would now like to do is have a field which calculates the largest percentage and fills the field with colour depending on the largest percentage, i.e if Yes is largest percentage then field is filled with Green, No with Red and Partly with yellow.can someone help me with the script for this please?Thank you so much in advance!!!
Hello. I dont have much experience in js in Adobe Reader and i have a question. I have to write app or script which navigate through a pdf (scrolling, change a page etc.) document by users hand gestures. Is it possible to bind certain operations with certain gestures? For example when gesture is recgonised, algorithm returns value which trigger some actions (ctrl + / ctrl - / up / down etc ) in the pdf document? Thanks for answers.
I have been using this script below to select Yes or No to populate text fields. It also works in other ways as well. Well, now I would like to include a tax field using the same script but what it's doing is, it's adding the "1", "2" or "3" inside of the tax rate field. See the script to better understand.Script:if (event.value.toUpperCase()=="1") event.value = ".08";if (event.value.toUpperCase()=="2") event.value = ".095";if (event.value.toUpperCase()=="3") event.value = ".10";What can I do or modify to have the value be entered into the tax rate field as the tax not the "1", "2" or "3"? It's probably very simple but it's beyond me. Can someone please help me out? Thanks.
Is there a way to use a javascript to require additional fields after a signature field has been filled out?I tried inserting the following javascript in the "This script executes when field is signed:"this.getField("Fieldtoberequired").required;
Hi all. I'm relatively new to the whole JavaScript in Adobe Acrobat thing so I'll try to be as concise as possible.Simply put, I have created a dropdown menu named "Banklist" with 2 options "Bank 1" and "Bank 2".When "Bank 1" is selected a second dropdown (named "MCCCODES") appears beside it with a number of codes which based off of the code selection will populate a field with a specific percentage.If "Bank 2" is selected the second dropdown remains hidden.I used the following Validation script and everything works as I had hoped:if(event.value =="Bank 1"){this.getField("MCCCODE").display = display.visible;this.getField("Test1").display = display.visible;}else{this.getField("MCCCODE").display=display.hidden;this.getField("Test1").display=display.hidden;}if(event.value =="Bank 2"){this.getField("Text5test").display = display.visible;}else{this.getField("Text5test").display=display.hidden;}My problem is that if I click on a dropdown in an unrelated area of the form (named Combo Box01 fo
I am creating a form with three checkboxes and several form fields. If the first two boxes are checked, the user needs to complete certain sections of the form before they can print. If the third box is checked, they only need to print the form and do not need to continue filling out the form. I added a print button at the bottom to run a script that if the required fields do not have data, the form will not print. But, how do I eliminate this warning if the user checks box #3? I've tried hiding the fields but I still receive the warning that I need to fill out the required fields even if they are hidden. This is the script I am using from Try67, which works great for warning the user to fill in the required fields: var emptyFields = []; for (var i=0; i<this.numFields; i++) { var f = this.getField(this.getNthFieldName(i)); if (f==null || f.type=="button") continue; if (f.required && f.valu
I have a job crew form that I have pretty much automated to save myself some time at the end of a job. And as a major part of this improvement my only option known to me to handle in/out time calculations using JavaScript to create a function [Time2Min] to convert the times to calculable values inside the function [TimeDiff] that performs the time difference operation. The code is below:function Round(nValue, nPrecision) {// round a number a given precisionreturn util.printf("%,101." + nPrecision + "f", nValue);} // end roundfunction Time2Min(cFormat, sTime) {sTime = sTime.toLowerCase();// adjust for 12:MM amif( (cFormat == "h:MM tt" || cFormat == "hh:MM tt") && ( (sTime.substr(0, 2) == "12" && sTime.substr(6,1) == 'a') || (sTime.substr(0, 2) == "12" && sTime.substr(5,1) == 'a') ) ) sTime = "00" + sTime.substr(2, sTime.length - 2);// convert a formatted time string to number of minutes since midnight// get time objectvar oTime = util.scand("mm/dd/yy
I have a few text fields I would like to change the fill color when the field is populated to yellow. If the text field is not populated the fill color would be white or transparent. The text color would be black. Can someone tell me how to accomplish this and where would the script go? Thank you everyone.
Hi there,i need help! Can anyone tell me what would be custom calculation script be for creating a simple aplha numeric text field in adobe stamps?Thanks for yourhelp in advance.Naval
Good.I would like to know how to do in js to complete the boxes that have a pdf to complete and also how to obtain such information.Thank you
Hi I'm currently using Adobe Acrobat Pro.I'm designing a PDF form with dropdown option field. Its contains 10 dropdown options. If a user selects 7 of the 10 option I need ["dropdown1", "dropdown2", "dropdown3",]; fields to be blacked out.Can anyone please help me with a script?
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.