Unlock the power of Acrobat SDK through our community.
Recently active
I'm new to editable PDF's and a novice at Javascript. I have three number fields (Text11, Text19, Text27) that if the value inside any one of them is one or higher - I need it to unlock another box below (OTHER1). Does anyone know how I programme this with custom script? Thanks!
Hi, I'm working on creating a form in Acrobat where the user (who will be using Reader) will select from a group of 5 radio buttons. 3 of these choices/radio buttons need to spawn and go to a page where they provide more detail. I've figured out how to use templates and spawning to have a template page hidden until the user clicks on one of the radio buttons and then go to that page (last page) using this code on each of the 3 radio buttons: this.spawnPageFromTemplate("Driving.HighwayCode");this.pageNum = this.numPages - 1; The issue I have is that I only want the template page to be able to spawn once and then ideally hidden if one of the other 2 radio buttons are clicked. I've tried to create some code that when one of the spawning radio buttons is selected, a hidden checkbox changes to say the page has spawned and that if another of the buttons is selected then not to spawn along these lines: https://answers.acrobatusers.com/Limit-spawned-template-q231635.aspx&nb
Hi There I have created this validation that runs from a dropdown i.e. North of Tyne, South of Tyne, etc...When the colleague selects North of Tyne the "Probation Office" Drop-down Field successfully shows Ashington, Berwick-upon-tweed, Newcastle and Wallsend - So far so good!However, whenever a colleague selects anything other than "Ashington" and presses save, this field always resets to ashington. It is reverting back to the first value in the dropdown for all of these lists and I wonder if it is due to the validation in the first field or the options in the 2nd field? Thank you so much for your help, I am new to Adobe and this is my first community post.
I have recently learned that iOS Adobe Acrobat does not handle custom calculation scripts very well (credit - Thom Parker). I am looking for a solution for the following on iOS: Date of birth date picker in the format of YYYY-MM-DD but parsed to three separate text boxes: BOX1: YYYY, BOX2: MM, BOX3: DD. I would also need a regular date picker that could convert lets say 2020-04-21 to three textbox ( eg. BOX1: 21, BOX2: April, BOX3: 2020)). I have been using util.scand and util.printd for desktop Acrobat for this which works great but does not work on mobile. Thanks in advanceLouis
I'm creating an employee evaluation form using Acrobat Pro DC. I have dropdown boxes for the evaluators to assign a ranking of 1 - 5 for each of twenty-five predescribed statements (e.g., "Excerses good judgement") in five categories (e.g., "Leadership", "Job Knowledge"). At the end of each category there is a field showing the average ranking for the five statements in that category. At the end of the categories there is a field (TotalAvgs) that tallies the five averages. Based on that total I wish to autopopulate a checkbox (or other type of box) in front of the applicable performance rating:* Does Not Meet Expectations (<15)* Meets the City's High Expectations (15-19.9)* Exceeds Expectations (20-22.9)* Far Exceeds Expectations (23-25) I have written a few logic statements in Excel but don't yet understand how JavaScript works. Can anyone give me some pointers? Not to be pesky but I forsee having two other questions, which I'll bring up after this one, related to Populat
I could use some help with something I can't find on the forums. I have a fillable form with a drop down field named 'EmployeeName' and a text field named 'WorkDate' which is formatted to enter a custom date. I would like to ensure the user selects their name from the drop down list BEFORE they fill out the date in the text field. Is this even possible? or have some sort of alert message that pops up if they try entering the date before selecting their name? Thanks!!
Can someone potentially help me with a problem that is hopefully easy to solve. I have three groups of radio buttons (Group1, Group2, Group3) - all with Yes and No checkboxes. I want to make it that if Yes is selected in ANY of the groups the details box is visible. I managed to use "Mouse up" "show a field" for the "Yes" boxes and "Mouse up" "hide a field" for the "No" boxes to almost get it to do what I wanted, the only problem is if the bottom box is selected "No" they have to reselect a "Yes" box to reshow the details box. Is there a way to make it so that if any of the Yes boxes are selected the details box stays visible regardless of what they select afterwards? I haven't used JavaScript before and I'm pretty new to editable PDF's overall so am a little lost!
I was hoping that someone would be able to write a simple script for me. I am a teacher and grading pdf papers. I am using the check mark symbol under the "fill and sign". All I am looking for is a script that will just pop up a box that will tell me how many check marks I have placed on the document. Ideally I'd like to be able to amend the script to also count other characters from the fill and sign tool such as the cross or line. Is anybody able to assist me with this? Thank you very much.
Hi community, I would like some help with some javascript ! The script I found helps me with marking circles over answers on a pdf that I have. However, I would like some help changing the code so that if I click on the button again, the circle disappears--to give people the option of selecting and deselecting. Any help much appreciated. The code is below. Credit Source: http://khkonsulting.com/2016/11/mark-selected-options-with-circles-in-pdf-forms/#:~:text=On%20the%20%E2%80%9COptions%E2%80%9D%20tab%20select,select%20options%20on%20the%20form.var baseName; var currentState; // get our namevar theName = event.target.name; var re = /(.*)\.(.*)/; var ar = re.exec(theName); if (ar.length > 0) { baseName = ar[1]; currentState = ar[2]; // make this button visible event.target.buttonSetIcon(this.getField("icon").buttonGetIcon()); event.target.buttonPosition
Someone help pls, how to get second calculation in new lineevent.value = Number(this.getField("field").valueAsString)*5 + "\n" *5;
First time using Acrobat Pro DC and I have never written in Javascript.I made a cool form with fields, drop downs, signatures, dates, clear the form button, boxes that autofill numbers using average or sums of numbers from other fields. Everything's working great. But when trying to learn how to write an easy code for doing something a little more custom I find that no codes work at all. I have the Enable Acrobat JavaScript and Enable interactive console boxes checked in Preferences. In the console no scripts operate. Not even something as simple as 3+4. What am I doing wrong? Is there some other security setting or something that I have to turn on or off?
Can someone pls help.event.value = Number(this.getField("num1").valueAsString)*7 + "%"; event.value = Number(this.getField("num2").valueAsString)*7 + "%";Only the second code is working but I need both of them to work,if value is changed in "num1" field I need first code to activate and if value is changed in "num2" field I need second code to activate.
Hi I have Adobe Acrobat DC that is paid for by my oranisaion activated on my account but when I log into the iPhone app with the same account it asks me to purchase the subscription to edit PDF's etc. (£9.99) How do i get the app to realise I already have a it paid for on desktop and I just need the app to work the same. Or is the subscription not transferrable to IOS device?
Hey all, I am trying to create a dynamic dropdown list in Acrobat. I was able to find many resources online using a javascript and happily got it to work! Unfortunately, I need to use the same dynamic drop down 8 times in the same form (you can select up to 8 answers off of the same extensive list). I thought I could just rename the fields and duplicate the script but it doesn't seem to work that way and each new field just replaces the same answer box). Can you please help! I assume it will take come coding knowledge which I do not posess! thanks in advance, below is a screenshot of the forms so it makes more sense and attached is the script since it is so long- it is the exact same info twice with the field changed to #2 but it didn't work for me
Hi, can someone pls make me script that I need or atleast give me some advice how to achive what I need cuz i'm new to this thx in advance.I explained everything in pdf file.
I want to specify the user's desktop in "cPath" specified in "saveAs" method, but I don't know how to set the path. What should I do with the location of "username" ?Is it useless below?Used in a multilingual environment.this.saveAs("/c/Users/%userprofile%/" + aaa + ".pdf");
HI AllIs there a way to inital all pages of a PDF form/document automatically by signing in one digital signature field when creating the PDF form/document? Or the auto multiple signings can only be done via form filling app/software? Thanks in advance. Best RegardsSTohSG
To avoid creating temporary files that would then have to be deleted, I usually name them with the final file name and rewrite it.Maybe it's a bad habit, but I didn’t find any other solutions.My question is, when I do this in an action or through the console with a single script, I get an error message that tells me that the file is already open.If I split the action into 2 consecutive scripts, that works fine.Is there a reason and a way to solve this? I guess that comes from « closeDoc » and the file is supposed to be still open…Here is an example of a script which works fine in 2 separate scripts, but which gives the message if it is executed in one go:// Script #1 var newDoc=app.newDoc(612, 792); // Letter newDoc.saveAs({cPath: this.path.substring(0,this.path.length-4)+"_XXX.pdf"}); newDoc.closeDoc(true); // Script #2 var newDoc=app.newDoc(612, 1008); // Legal newDoc.saveAs({cPath: this.path.substring(0,this.path.length-4)+"_XXX.pdf"});…and the message:RaiseError: Ce fichi
Hi Team,We are using Acrobat Shared review process to proof out the PDF and have requirement to restrict the comments added by other author/proof reader. Please let us know if there is any option available to restrict specific user. Thanks and RegardsBalamurugan V
I need to calculate the following in FieldC calculation.IF FIELDA is greater than FIELDB then FIELDB value goes into FIELDC. Can anyone help me do this?? you're help would be greatly appreciated.
I don't know why this isn't working. I entered the following in custom calculation script in the RegHrs1 text field, but I'm not getting the alert when the Shift Premium checkbox is ticked. What am I doing wrong?? var a = this.getField("ShiftPrem1").value;var b = this.getField("RegHrs1").valueAsString;if(a=="Off") event.value=b;else if (a=="Yes") event.value="";if ( (b!=="") && (a=="Yes") ) app.alert("Please enter hours first",0);
I am creating a form and I want it to check a box of met or unmet depending on a text field entry. So if the text field is less than 5% I want the box of unmet to be checked. Any idea how I can make that happen.
Good day,I created an invoice. Actually very simple. Quantity times price gives amount. I have 4 calculation fields. If I only want to use 1 field there will be 0.00 in the not used calculations. I would like those lines to stay empty. Is there a way to do this? the calculation in the amount field is QTY1*PRICE1......up to QTY4*PRICE4. Thank you!
Hello, I am currently trying to create a PDF of a schedule, where a user can select their desired program from a dropdown and the button will automatically have the corresponding link. I followed this tutorial to get the dropdown selection to effect a text field (successfully), but have no idea how to have the dropdown edit the link or button element, OR have the text field (based on the dropdown) effect the link/button. (I say link/button because I can use whichever works!) Any assistance or links would be amazing, I've tried googling but no one else that I could find seems to want to do this. Thanks,Sarah
Is it possible to have more than one export value populate to the same text field depending on what the user chooses? I have 2 dropdown fields 1)Employee 2)Absence that I've put export values on to populate to a text field named Pay Type.I added the the JavaScript below to the custom calculation script in PayType which works for one dropdown field, but I'm not sure if you can make it work for both Employee and Absence dropdownsevent.value = this.getField("Employee").value;Eg. if the user chooses from the Employee dropdown the export value populates to PayType but if they choose from the Absence dropdown I'll need that export value to populate in PayType, but if the user removes the selection from the Absence dropdown I'm hoping it will populate the export value again from the Employee selection?I'm hoping if it can be done and/or I can figure out how to do the JavaScript it just might help resolve an issue I'm having with my form.
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.