Unlock the power of Acrobat SDK through our community.
Recently active
Hi,I am creating a dialog box and I'ld like some edit_text type elements only accept numbers, and on the fly of course...Is it possible to do that as we can do it with tetxt fields?Thanks in advance for your answers.
I create a form have lot of fields that I would like to have auto tab to next field function, so I don't have to tab each single field. I saw few posts mentioned to use Java Script, but I don't know which Java is correct one to use. I need something allow me to enter numbers and letters. Also I need to know where do I enter the script Format Script or Keystroke Scripts or wherelese. Thank you so much!
Im looking for a way in Adobe Acrobat to highlight all words, of varying length, that contain a hypen and are followed by a period, ie, the last word in a sentence. Examples may be "con-tinued." or "wood-grain.". Ideally this would be part of an Adobe Action so users can easily access. Is this a relatively simple JavaScript?
I have an Excel sheet with lookup tables that I need to convert to a fillable PDF. I am currently using AEM 6.4 to develop the form. I cannot use an external database, the form has to be portable for use by field personnel. I am not new to scripting, but I am not a programmer, this is out of my wheelhouse. Any help is greatly appreciated. My form consists of the following:A user facing page that allows the user to enter values in an expandable table called adj_table. The column I need to use as the lookup value cell is called date, the value I need to lookup is called m_index and is placed in adj_table in a cell called index. We then use the index value to calculate and index adjustment. There are other variables, but solving the index issue will give me a good start and something to work from as an example. In another table that is hidden, we enter the monthly index in an expandable table. The table is named m_table and has the cells m_date and m_index. This table can be upd
Hi, In my form I used an action button to email the form once the required field are filled. If not a message has to appear and the missing field are highligted in red. I used a Script I found in this forum 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.valueAsString==f.defaultValue) { f.strokeColor = color.red; //Highlights the required fields with red outline emptyFields.push(f.name); } else f.strokeColor = color.gray; //Highlights the filled in fields with gray outline}if (emptyFields.length>0) { app.alert("WAIT! You must fill in all of the required fields before printing this form");} else this.print();At first it seems to work but when I click the message the emai
In short, I want to assign a value of zero to a dropdown field if the user does not choose an item from the list and enters custom text. I have a form with multiple fields. The form calculates the Wheel Tax based on input from three fields. "Wheel Tax Cities" and "Wheel Tax Counties" are both dropdowns that have items with Export Values and allow user to enter custom text. A third field is called "License Plate Fee Dropdown." One of the fields called "Wheel Tax" I have a custom calculation script that sort of works but only calculated sporadically: var t1 = getField("Wheel Tax Cities").value;var t2 = getField("Wheel Tax Counties").value;var PlateTransfer = getField("License Plate Fee Dropdown").value;if (PlateTransfer < 1) event.value = 0;else if (isNaN(t1)) t1 = 0;else if (isNaN(t2)) t2 = 0;else event.value = t1+t2; Wheel Tax = Wheel Tax Cities + Wheel Tax Counties but is zero when there is a PlateTransfer. Thanks for your time
Hello, I've created a PDF formular file with an input field and when the person enter the price then other fields are going to be calculated using the entered number. Everything is working in my Acrobat DC PRO but when I send the file to another person without paid adobe subscription, then the person can enter the number but the brutto and netto fields are not calculating / updating. Is this normal or am I doing something wrong? Or only people with DC PRO become the calculation? Best wishes and thanks in advance
I have form which can be filled out manually or electronically. One section has a comment box with multiple lines "printed" on the page. Since I can't modify line spacing to line up with the printed lines, I would like to have a validation script to fillColor with white when an entry is made in the field (this will cover up the lines) or with no fillColor if there is no entry (which will leave the lines visible). Or it could be phrased the other way around. But I don't know how to write the script to describe a "no color" situation. I found something similar on another post between two colors, but not with no color. , but I don't know how to fix it. .if (event.value == "") event.trarget.fillColor = color.red; //how do i say no color?else event.target.fillColor = color.white; TIA - Michelle
In theory, what I'm trying to do is pretty easy. But I've reached my breaking point trying to figure it out on my own. This is for a project at work that I need to figure out and have ready ASAP. Any help would be extremely appreciated. Every week I am required to visit a construction site and take 35 photos from specific locations for the duration of the project. The locations from where the photos are taken do not change from week to week. Once the photos are taken they are required to be compiled into an interactive PDF that shows a map of the site with each location of where the photograph was taken designated with an icon. That icon should then be clickable to show the image that was taken from that location. I have only been tasked with this for two weeks and both times I've been able to meet their requirements but it's sloppy and labor intensive each time. The first week I simply created a single PDF of the map and all 35 images, each on their own page. Then I added bu
Help please if I need to calculate the difference between two dates in weeks and days.how do I do please ? I have 3 feilds the first "DG", the second "date", the third "age" I can make the diffrenece in weeks or days but not bothplease help meevent.value = 0;var strStart = this.getField("dob").value;var strEnd = this.getField("date").value;if(strStart.length & strEnd.length) {var Start1 = util.scand("dd/mm/yyyy",strStart);var End1 = util.scand("dd/mm/yyyy",strEnd);var diff = End1.getTime() - Start1.getTime();var oneDay = 7 * 24 * 60 * 60 * 1000;var days = Math.floor(diff/oneDay);event.value = days;}
Hope someone can help, I'm new at creating forms and need help with fill and sign. I have created a form for customers to fill in and then sign using a stylus pen. Is there any way in which the form can be set to auto bring up the fill & sign box when the field is selected on the form and automatically set the signature within the field. thanks
I have an 800+ page pdf file with 21 bookmarks. I want to print the whole thing, but have some indicator where the bookmarks begin and end so that I can insert tabs. In this particular case there are no page numbers to go by, and going page by page is very tedious. Therefore, I want to send the whole thing to the copier in one shot but be able to separate the bookmarks. This can be done through slip sheets, offsetting (collating), or even breaking the document up into individual sections. While I've never worked with JavaScript at all, let alone within Adobe - this appears to be my best option. Does anyone have any idea?
We have developed in-house software for streamlining our business. Does Adobe provide an API in C# or Angular 7 through which on a click HTML page is automatically converted into PDF file and saved in the desired location?
Hi Guys, Hope you can help. I have a drop down box (Dropdown21) which has multiple employment options in there. Employed, Self Employed, Retired and House Person. I am using a button to run a Javascript, the idea being that if you select Houseperson in the dropdown box it will populate another field (C2_House_Person) with the value 15000. If you select anything else then it will be 0. So far I have the following:- var v1 = (this.getField("Dropdown21").valueAsString);if (this.getField("Dropdown21").value=="a House Person") event.value = "15000";this.getField("C2_House_Person").value = v1
Hi all, I'd like to know if there is a way to script or an existing method to find pages in a document that do not contain a certain word or phrase. I have a document that is 400 pages and each one should contain at least one instance of a specific word or phrase based on user prompt. Ideally the output would be a simple list of page numbers that are missing this word. Thanks in advance for any assistance.
Hi.I have pdf files with lots of markups (rectangles, ovals) and would like to use Javascript to automatically change their fill color to none and line thickness to 2 pt. Can someone help me out with the code?Thanks!
Help please if I need to calculate the gestational age in a certain date (any date)how do I do please ? I have 2 feilds the first "DG" date of conceptionthe second "age" the date at which i want to calcule the gestational age in weeks and days this my script (try67 helped me in this script) but this script is for the today date :var dateFormat = "dd/mm/yyyy"; var startDateString = this.getField("DG").valueAsString; event.value = ""; if (startDateString!="") { var startDate = util.scand(dateFormat, startDateString); if (startDate!=null) { var now = new Date(); var dayInMs = 86400000; var diff = Math.round((now.getTime()-startDate.getTime())/dayInMs); var diffInWeeks = Math.floor(diff/7); var diffInDays = diff-(diffInWeeks*7); event.value = diffInWeeks + " SA " + diffInDays + " jours"; } }please help me
I have a form that is about 200 text fields. Is there a way to use a general onblur / onfocus for all of them? adding the same javascript for all of them is a pain in the .......
I'm currently using Adobe Pro DC. Been trying to use action wizard to batch remove encrpytion and draft watermark on certain documents. Tried; Edit PDF > Encrypt (None) > Remove Watermark > SaveAt Edit PDF it prompts for password and wondering how I can add it to macro to add password automatically. Any suggestions would be helpful? Thanks
There is a tool for "documents will print", I would like to clear all default place holders. is this possible? I found and modified this script and I added in an alert and the default values are not deleted, for ( var i = 0; i < this.numFields; i++) {var fname = this.getNthFieldName(i);var ffield = this.getField(fname);console.println("fname: "+ fname + " - ffield.value: " + ffield.value);if (ffield != null && ffield.value==ffield.defaultValue) {ffield.value = "";}}
Hello, I need your help please, I need to calculate pregnancy age in weeks and days. I have a feild called DG (date de début de grossesse)and another feild called TA (terme actuel)I want to have the résultat in weeks and days in the feild TA : nombre of weeks followed by "SA" and nombre of days folowed by "jours"can you help me pleasethanks anyway
Hey all. I'm preparing a new form for my office using Adobe Acrobat DC, and I'm trying to get the date to auto-populate in a form field. Following some instructions online, I set the field to be read-only, so users can't mess with it, and set it to calculate with the following custom calculation script:-------------------------------var today = new Date();event.value = util.printd("m/d/yy", today);------------------------------This does, indeed, pull up the current date, but not dynamically: if I enter the script today, 11/25/19, it pulls that up, but if I open the document tomorrow, it'll still say 11/25/19, unless I re-enter the script, at which point it updates. Thanks, in advance, for your help.
Help pleaseI'm working (under Acrobat X)I created a date feild called : "DG"and another feild called "TP"I have to calculate between different dates.I would like "TP = DG + 39 weeks" in the form dd/mm/yyyy but i need so that the day stays the same.exemple if DG : is 01/08/2019 the TP must be 01/05/2020 (in another way the month + 9 (month = 28 jours). var sDate = this.getField("StartDate").value; // get date string var nWeeks = 39; // get or set the weeks to add var oDate = util.scand("dd/mm/yyyy", sDate); // convert to object oDate.setDate(oDate.getDate() + (7 * nWeeks) ); // add 7 days * number of weeks to date event.value = util.printd("dd/mm/yyyy", oDate); // format resultHelp me please
I have a 2 page sales contract that needs to be made read only before being sent to a customer BUT there are a handful of fields that the customer might need to update, so these need to stay open. I've seen various answers on here but can't find exactly what I need. I have a code in use on another document, but that makes the whole doc read only and you can't reverse it the action once the button has been pushed. For info, I can't change the field names on my document as they are actually merge fields, but the fields I want to stay open I can add a prefix, so is there a code that will make all fields read only apart from the ones with a prefix of OPEN? I've also seen on here that you can add a password to this action so if the salesperson hits the 'make read only' button early, he can reverse it by inputting a simple '1234' for example. He also has to input this to make the doc read only in the first place. Thank you!
I'm in Acrobat Pro I have a 50 plus page document. What I want to do is create buttons that will print certain forms within the document. My question is not with creating the button, but with the label of the button - can you have a multiline button label. I'd like the label to be, Finalization Documents JV-364 and VS-44, just like the image below. Would this be possible? Finalization DocumentsJV-364 and VS-44
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.