Questions
Recently active
Trying to have an alert pop up only if two conditions are met. The script is running On blur for the text box. First condition is the text box and second is a check box just before it. Right now the message is popping up everytime we tab to the text field regardly if the conditions are met. if ((this.getField("EthnicityOther").value.length == 0) && (this.getField("Other1").value = "on"));{app.alert("When Other is selected, please enter a description.")f.setFocus()}
I have field "points" that shows value 30/30, and 3 other fields(C1,C2,C3) for entering values which then substracts from field "points".How do I make it so field "points" can't go bellow 0, it only allow up to 0? for example if I want to enter 31 in field "C1" itdoesn't allow me.INFO:Field "points" have default value of 30 and use custom calculation script:var a = this.getField("points").defaultValue;var b = this.getField("C1").value;var c = this.getField("C2").value;var d = this.getField("C3").value;var x = a-b-c-d;event.value = x + "/30";It doesn't allow me to enter "Field value is in range" which I could use to solve my problem, I can only enter custom validation script.I also have 3 buttons each for fields C1,C2,C3 with dialog boxes where user input numbers which is then writed to fields C1,C2,C3. I think that I need custom validation script for field "points" but not sure how to write one.
I have create new action using Action Wizard in Adobe Acrobat DC. Is there any way to call this new action using javascript? My requirement is to create custom menu, which can call this new action. I am following this link for custom menu https://acrobatusers.com/tutorials/add_custom_menu_items/
Hi, I am trying to create a form where there is an "effective date" and then once that person fills that in(it will be in yyyy/mm/dd format), the next field is autocompleted to be 1 year from that date. I am new to any custom calclutation script but I believe this is what I need. Thank you so much for any help.
Hey guys I'm new here and I'm a complete novice at Javascript. I'm a designer that wants to get better at coding. I'm trying to add a numeric value to the checkboxes in the 'size' row. Each of the 6 checkboxes will have a different value. Those values will be added together and multiplied by the values that will be inserted in the 'quantity' and 'colours' rows, to get a total. So the total at the end should be something like size(s)*quantity*colours. I'm currently stuck at applying values to the checkboxes. I've been at it for about 2 weeks now (seriously) and haven't figure it out. I used arrays to group the checkboxes as seen in the code below. I can check which box is ticked, but I don't know how to apply values to the boxes and only calculate boxes that are ticked. Any help would be greatly appreciated. Thanks var estimate = this.getField("estimate"); var sizesMale = ["male_small","male_medium","male_large","male_xl","male_2xl","male_3xl"]; var quantit
Hello All, I'm calling my web Service from the Submit button. I'm sending as a FDF include Comments. when I'm calling it as physically click on the button it's sending comments, but when I tried to call it with Java scipt it does not include coments/Stick notes. I have tried the below method: var myURL = "http://localhost.../"this.submitForm(myURL, null, "HTML");this.submitForm("http://localhost",true, false,"");//var cd=('http://localhost');//this.submitForm(cd,"Comment", "#FDF"); Can someone please help me.
All file already completed
I'm getting missing before statement, Do I need to separate +* and how do I do it?event.value = Number(this.getField("field").valueAsString)"+"+*6+"%";
Greetings,We have hundreds of pdf files that we would like to protect them individually with different password and send them out individually.Is there any solution provided by Adobe to accomplish this task?Scenerio: Finance/Payroll Dept would like to go green and save monies by sending employee's non-negotiable pay check in PDF format and protect them with a password that employees provided. We need to be able to do in batch for hundreds of employees.Can anyone shed some lights on this?Thanks,
I have just recently downloaded Acrobat DC Pro because I was told it came with the SDK and the SDk could handle the task I was looking to perform. The bottom line is I am trying to index a PDF file without opening it in Adobe acrobat. I have spent the better part of the week researching this and I'm struggling to make a lot of progress, so I have a few questions.Can someone point me to some examples of using the SDK to index a PDF file. I'm not a javascript or C# developer but have enough programming experience to figure it out once I get started.Best suggested way to accomplish my task? Javascript? C#? Plugins? or Windows Interapplication communications?Lastly? It only looks like I can create a full text catalog (pdx) on the PDF file through the SDK - is that correct? Why did adobe change to have embedded indexes diabled by default?Sorry for the ramblings but any help / suggestions would be greatly appreciated.Thanks ,Joe
In Adobe Acrobat Pro DC I have designed a fillable survey for clients. At the top is a generic text that I would like to have customized. The generic text reads "Custom Residence" and is on every other page at the top. I was wondering if there was a simple way to manually change the first pages text to a respective clients names and have that update the same on all other pages? Summary. I'd like to update text on one page, and have all other pages reflect that same change.
Hello everyone, I created a PDF fillable form for Spanish users, but when I try to type in Ñ/ñ on he Acrobat reader it wont allow me I type the universal command which is ALT+ 164/ALT + 165 and nothing. Is there a way to prevent this beforehand when creating the form in inDesign? I used a font that does include the chracter and it does work while in inDesign, but not in the interactive pdf.
How can I measure the margins of a PDF document? I need to be able to inspect many documents (100+) to see if their margins comply with requirements.
Hi, I'm using acrobat pro to create a form. I need a button that when pressed will copy text from a hidden text box and allow me to paste it into another program. Is this doable? Thanks in advance. Sean Downes
if(this.getField("field").checkThisBox(0, event.value=="4/8"));How do I make it check the checkbox even if values are "5/8","6/8","7/8" and "8/8"?
My requirement is to show warning message before signing the document without customizing the PDF.For this I am creating custom menu to execute below action in sequence:Execute JavaScript to show alert And then pop up digital signature Below is the Javascript: var DoMyMenuItem = app.trustedFunction(function(cItemName) { app.beginPriv(); app.execMenuItem(cItemName); app.endPriv(); }); function CallMenu() { try { app.execMenuItem("FillSignApp"); //DoMyMenuItem("Signatures"); } catch (e) { app.alert("Error: " + e); } } app.addMenuItem({ cName: "My Action Menu", cParent: "Help", cExec: "CallMenu(); " }); I am getting this error "Error: InvalidArgsError: Invalid arguments." on runtime. Is there anywhere I can show warning message to user before signing document and Is there a way to call Digital Signature using JavaScript execMenuItem function?
I have built a timesheet for my employees but unfortunately it confuses some. I need it so you insert the date for the last day of the week and then it automatically fills in the dates next to the corresponding day. For example. 11/02/2020 Wednesday. Please help
I have to post this query 3rd time.. bcoz someone is marking my post as spam don't know why 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 =
Could someone possibly help me and modify code for me?I would need to change from "edit_text" to "popup" with selections t1,t2,t3 and "ok" button to write selections to text field. I'm trying this whole day and just can't figure it out. var dlg = { commit: function(dialog) { var data = dialog.store(); this.strName = data["usnm"]; }, butn: function(dialog){ dialog.end("butn"); }, description: { name: "", elements: [ { type: "static_text", name: "", char_width: 15, alignment: "align_center", font: "dialog", bold: true, }, { type: "cluster", name: "",elements: [ { name: "", type: "static_text", }, ] }, { type: "cluster", align_children: "align_row", elements: [ { name: "", type: "static_text", }, { item_id: "usnm", type: "edit_text", char_width: 4, }, { type: "button", item_id: "butn", name: "Reset" } ]}, { type: "ok_cancel", ok_name: "Ok", cancel_name: "Cancel", }, ] } }; var dialogReturnValue
Good morning, I need a hand please with code that takes height and converts it to a more detaliked version. Height would be entered like this for feet & inches: 600 (which means 6 feet & 0 inces). I would like it to to display as multi line like this please: Ft 6In, 00 Thank you in advance.
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.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.