Unlock the power of Acrobat SDK through our community.
Recently active
Hi all, Got a pdf with fillable fields, TIME OUT & TIME IN. Both are entered as HH:MM. No seconds, no date. 24hr clock. I want to find time difference between them also dispalyed in HH:MM. ie time in 12:00, time out 14:30....elapsed time...02:30. I cant get a head of this and its bugging me. Can anyone help?
Hello all,Im sorry if this has been asked, i have been through all the help docs and through google. i am new to Acrobat DC and am trying to create a JavaScript that adds 2 hours to the current time. I dont need the entire date, only the hours. ie. i save my form and it automatically says the time in "arrival" 2 hours from the system time. I am able to get the current time to populate with: var f = this.getField("arrival"); f.value = util.printd("HH:MM", new Date()); and tried adding the variables i could find to add 2 hours two it. I tried using the adding the 5 days format i found in the community and tweaking it to my need to no avail: var f = this.getField("arrival");var twohours = .83 * 24 * 60 * 60 * 1000;var theNewDate = new Date (finalTime); f.value = util.printd("HH:MM", new Date()); can anyone help?
Hi, I need help to implement into code bellow, ok: function for "ok" button to write data from input field into text field and other; function for reset button to reset or write 0 into same text field.var CustomDialog = { description: { name: "Some Name", elements: [ { name: "Some text", type: "static_text", }, { type: "cluster", elements: [ { name: "Some text", type: "static_text", }, ] }, { type: "cluster", align_children: "align_row", elements: [ { name: "Some text", type: "static_text", }, { item_id: "usnm", type: "edit_text", char_width: 4, }, ]}, { type: "ok_cancel_other", ok_name: "Ok", cancel_name: "Cancel", other_name: "Reset" }, ] } }; app.execDialog(CustomDialog);
Happy Monday, I am still learing and could use a little help please. I searched the previous threads and cannot seem to figure out these several parts of Javascript for my PDF please: 1) I have the following code in the custom key stroke section: "if (event.change) event.rc = /^[a-z]+$/i.test(event.change);"It's working, but I would like to add a allert/nag pop-up, when someone types a numeric character, please. I can't seem to get that part to work. 2) I have a section with 5 checkbox choices. I need them to start all as required, but once, one of any of the 5 choices is selected, the required and red outline goes away for the other 4 remaining choices please. 3) Not sure if this part can be done. If they select specific options in a dropdown, it adds new pages/forms to the bottom of the PDF that have to be completed.Sorry to be a PITA. Thank you in advance and please stay safe and healthy.
I have a section with 5 checkbox choices. I need them to start all as required, but once, one of any of the 5 choices is selected, the required and red outline goes away for the other 4 remaining choices please. I am very confused how to use the .value option for a group of check boxes. I had thought just that alone, would un-red the remailing 4, once any of the others are selected. It should be noted, even though, I want the required red outline to go away, I still want the other 4 boxes to be able to be selected please. I am also having a hard time with a simpler one. I have a text box, that if anything is entered, I need a word endered into another text box please. Thank you in advance.
I have form that assigns analyzers when the mouse up action occurs on the form. User will enter the serial number of the analyzers and the appropriate forms are spawned. I had to add a feature to allow the user to change the serial Number in case they make a mistake or the Analyzer fails in the field. I opted to delete the spawned pages and recall them again using the new variable value to add the serial number on the newly spawned forms. Everything works as should and no errors are logged in the debugger except the the old serial number is added to the newly spawned forms. The portion of code to assign the new value to the variable is highlighted in red. I have tried everything I could think of and have serched online for countless hours. Any help would be greatly appreiated. The code I wrote as follows:// If button is Clicked and the hidden check box is not checked - the Analyzer1 check-off pages will be spawned;var cb2 = this.getField("CB2").value;var b1 = this.getField("
I created a set of dynamic stamps to be used at deposition hearings. One is to be used for Plaintiff, Defendant, Claimant, etc. I want to be able to select ONE stamp and place it on a document. These stickers each have a fill in field where I can place a number or a letter in to identify the document as Exhibit A, B, 1, 2 etc. I am using app.response in each of the stickers to fill it in. The issue that I am having is that when I try to bring up, for example, the Defendant's sticker it will ask me what letter/number I want to assign to it. It does this four times (there are four stickers in the file) before it allows me to place the sticker. It seems to be running the app.response for each and every sticker. This is the code that I have in my sticker - event.value = app.response("Exhibit Number:"); How do I tell the program that I am only interested in labeling ONE sticker?
I am looking to insert the same block of text to selected pages of a PDF. I need it to say "end of report" on multiple pages within a PDF, and I need to place it there as I am going through the PDF. Sometimes I have thousands of pages in my document, so a footer isn't a great option because I only really know what page I need it on when I am selected on that page, and sometimes pages before or after it may be removed. Ideally, I would like to be able to use a keyboard shortcut or a toolbar button. I would like it to automatically go centered and at the bottom of my page, but could also do at the cursor. I would like this to be text, not a stamp, because of our internal process using stamps as a commenting tool.
I'm trying to work on a fillable PDF, but I'm new to JavaScript and have only don the bare minimum, I have been asked to do this on the PDF and I can't figure it out: Youth Registration Fees: equals number put in text box(# of paid youth) x ($5.50 x the number of months chosen in #18). UNLESS Box 15 or 17 are checked. If Box 15 is checked the formula changes to the number put in the text box(# of paid youth) x ($2.50 the number of months chosen in #18). If Box 17 is chosen, the formula changes to number put in text box(# of paid youth) x ($3.50 x the number of months chosen in #18)
I am currently working on a form that spawns pages and adds the serial number to each page and changes the Button name to the serial number the technician types in. It works the way I expected, but changing the buttonSetCaption command using a variable also generates an error. This was liveable but the technicians have requested that we add a way to change the serial number within the document instead of having to create a whole new form. This has become problematic and I can not find a solution online or in any of the forums - any help/insight would be greatly appreciated. Here is the code I have so far:// If button is Clicked and the hidden check box is not checked - the Analyzer1 check-off pages will be spawned;var cb2 = this.getField("CB2").value;// Assign Templates to be spawned a variable so they may be recalled;var a1a = this.getTemplate("Analyzer1A");var a1b = this.getTemplate("Analyzer1B");var a1c = this.getTemplate("Analyzer1C");var a1d = this.getTemplate("Analyze
I've got a form that I'm trying to create a form that can used for survey work. I need to be able to select the Feature, then have the Type populated based on the Feature. Then be able to select the Type and have the Material list populate based on the Type. I can't get the test code to work and don't know why. Any help?Link to Test File Thanks in advance.
Hi all I have a multi-page (22pages) form with a "Save Form" button on each page. When I export the file from InDesign into Acrobat I'm currently using "Prepare Form", then selecting multiple instances of the button on each page, then applying the "Execute Menu Item" across all buttons. However, is there a way to do this using a script? Just trying to speed up my workflow. Thanks M
Can someone please make me a script for dialog box I don't know how to do it myself.Dialog box should have text first( Il input custom text in code) under that it should have input field for numbers(it's not necessary but it would be nice if it have max number that can be input, lets say 7 is max number that can be input) it should have "ok" button when pressed selected number should be writen in 2 text boxes(text1 and text2) hope someone can help or give me some pointers how to start? Thanks
When data is pushed into pdf forms, is it different than being manually entered? I have calculation scripts that don't seem to fire based upon field values, and sometimes field formatting is ignored. Is this imported data somewhere else that I can't reference it with .value? Or are there only certain things I can do with it after it's imported? I recently wanted to make the value of 5 fields zero if another field was not blank, but the import just blew the numbers in regardless of calculation order or if I used .value with the target fields or not - it didn't replace the values. I do have a calculateNow function at the Document level.
I created some text form fields.Is there a way to change the format of Form Field to Date format with Javascript?
Hello! I am trying to make it so Monthly/Annually both update based on the value that is entered or updated.Is it possible to get each of these 2 fields to update once either is filled in or when the value of either is changed? It seems i can get one field to calculate based on the other but not vice versa . event.value = Number(this.getField("txt_Annually").value) / 12; in Monthly fieldevent.value = Number(this.getField("txt_Monthly").value) * 12; in Annually fieldI currently have these 2 calculations in each respective field. At the moment it doesnt allow you to alter the value inside the Monthly field. Any advice would be greatly appreciated!
I had to delete the Adobe Acrobat XI on my PC (window) andtry to installed it again (from internet) after checking my series no. at Adobe, but the installationprocedure say the series no is wrong.Br. Inge
Hello, I've been experimenting with dynamic stamps on Adobe Acrobat Pro recently and I've been able to figure out how to make a few things work but I'm stuck with Drop-Down lists. I want a stamp that when applied, gives the user a drop-down list of 4 items (5200250, 5200254, 5212254, or 5221254). I'm not sure what Javascript codes I must enter under "calculations" to get this to work.Any help would be greatly appreciated.Thank you,
Running Acrobat DC, 2020.009.20067 on Win 10.Actions Panel shows a full duplicated set of the Out of Box Actions. I know I did this while puttzing around, but I dont know how.Please tell me how to set the list back to out of box defaults. I will then add my own actions back in. Thanks!Dave
Can text color be changed in this code?app.alert("sometext",3);
Hello! Is it possible to use javascript dynamic stamp to search for a word?I tried adding this code to the Actions of the dynamic stamp template text fieldActions/Mouse Up/Run a JavaScript search.query("Test", "ActiveDoc"); But when inserting the Stamp into the document, the script does not work!
Hello, Anyone know how to have fields auto populate based on a day selected from the PDF drop down calender. I am looking to have it where if I select Monday 7/13/2020 from the drop down it will fill 7 other fields with 7/13, 7/14, 7/15, 7/16, 7/17, 7/18, 7/19. Ability to fill in the boxes underneath each day with the corrosponding day selected from the drop down in blue. Any help much appreciated! Thank you.
Hi,I have a form of 4 pages, all 4 have been turned into templates. I have dropdown on MainPage from where user can select Month, according to which corresponding template should show/hide.... ex.. if January is selected then Jan20 template should be visible rest hidden, if February is selected then February should be visible rest hidden..... Below is the script i have used,, everything is working fine... except everytime is changed the selection it throws error "Bad parameter" Attached is the link of the file: https://www.dropbox.com/s/5ht33asjvy5r0to/2020.pdf?dl=0 Here is the javascript var a = this.getTemplate("Main_Page"); var b = this.getTemplate("Jan20"); var c = this.getTemplate("Feb20"); var d = this.getTemplate("Mar20"); var resp = this.getField("Monat").value; switch (resp) { case "January 2020": a.hidden = true; b.hidden = false; c.hidden = true; d.hidden = true; break; case "February 2020": a.hidden = true; b.hidden = true; c.hidde
Hi there! I'm not super familiar with interactive PDFs - It's been a while. 😉 I'm working on a doc that I would like to have buttons that would delete sections (multiplate pages) of the document. Essentially it's a collection of forms and we don't always need all of them. So I'm looking for a quick way to hit a button to remove them from the collection. Do I do that through Javascript? If so, how do I do that? Thank you!!!
Hi,I have a form of 4 pages, all 4 have been turned into templates. I have dropdown on MainPage from where user can select Month, according to which corresponding template should show/hide.... ex.. if January is selected then Jan20 template should be visible rest hidden, if February is selected then February should be visible rest hidden..... Below is the script i have used,, everytime selection is changed it throws error "Bad parameter". My adobe version : Adobe acrobat pro DC 20.006.20034.39303 Attached is the link of the file: https://www.dropbox.com/s/1sra0teo5w96k93/2020.pdf?dl=0Here is the javascriptvar a = this.getTemplate("Main_Page");var b = this.getTemplate("Jan20");var c = this.getTemplate("Feb20");var d = this.getTemplate("Mar20"); var resp = this.getField("Monat").value;switch (resp) {case "January 2020":a.hidden = true;b.hidden = false;c.hidden = true;d.hidden = true;break;case "February 2020":a.hidden = true;b.hidden = true;c.hidden = false;d.hidden = true
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.