Unlock the power of Acrobat SDK through our community.
Actividad reciente
In my AcroFormI have a date field (DateOfInsp) I have a Fiscal Year field (FY) and a Quarter field (Qtr) I want to populate the FY (yyyy) field and the Qtr field (1,2,3,4) based on the date field The fiscal year for my organization starts 10-1 and ends 9-30 of the following year I am looking for the javascript to do this, or guidance so I can learn myself...I am pretty new and just want to automate my forms as much as possible and provide data validation whenever possible I have seen many posts related to this, but haven't figured it out yet... Any help is greatly appreciated
Does the Javascript API allow getting/setting these document properties:reading languagetagged PDFI can't see anything obvious in the May 2015 API reference.
I found this file under the Acrobat Reader DC folder. Can anyone tell me what it is? Also, should I get rid of it?F_CENTRAL_msvcr100_x86.1DEE2A86_2F57_3629_8107_A71DBB4DBED2 Thank you
I have a Radio Button Group with 2 choices(Group1) - a Yes and a No radio buttons. I would like for the color to change based on the which one is selected. When the No button is check, it should be Green and Yes should be white. When the Yes button is selected, it should be Red and the No should be white. I have this currently entered in the mouse upevent.target.fillColor = event.target.value=="Off" ? color.white : color.red;But it changes both of the buttons. ot the color choice of the button that is chosen. Any help would be appreciated. Thank you!
Hello All, I have a question regarding Image Field(Button). I have 5 image field on the pdf and I'm sending all the 5 field to the c#, but when I'm trying to save the pdf using c#, I'm able to access the Normal field With the value but not able to fidgure out the How I can map the Image field and Value. Ps: I don't have any issue reading the images or fields, not able to figure it out which field relates which image?As an exmple: I have image and I can set to Image field 5 but In my current document it's on Image Field-1. I don't want to hard code the field name. It should work like normal field: Doc1 Formname: test and Doc: 2form name :testI'm not able to map it correct. Is there any way we can find if image field as value ? Thanks Regards
I have 3 rows in which % is calculated of the total ... but some how the total of the 3 fields doesnot come to 100% . in some cases it totals correctly but when all the 3 fields have equal value their % of the total show 33% each which doesnot add to 100%..... below is the screenshot.. and also the link of the working file. Link to the working pdf file: https://www.dropbox.com/s/n49e6ta3xb3dlf5/Page%201%20GMS%20Form.pdf?dl=0 Thanks
Hi there! I have a registration form when the user must select one of three check box options, each checkbox has a different export value. I also have one dropdown list with "yes" or "no" as options, "yes" needs to equal 0 and "no" needs to equal $45.00.I have a text field where I want to calculate the checkbox option and add any "no"selection to it. I'm at a total loss and any help would be grealy appreciated. Thanks!
This error message is coming up after trying to complete the following division equation to create a Percentage (which is formatted to percentage with two decimals):Openended/(Closedended+Openended) in a simplified field notation.I have tried multiple custom calculation scripts that create a null or 0 or blank field because the Openended and Closedended both are formatted to number; however, I continue to get the same error message.
Hi, I want to export checkboxes values to textfield if it's checked, I have this code but it only works for last checkbox what I'm missing? checkboxes are "c 1" to "c 5".var cVal = "";for (var i=1; i<=5; i++) {cVal =(this.getField("c " + i).value);}event.value = cVal;
Here is the latest code and now it is not working when I click on NO, it owuld reset the fields. NOw that is broken. Everyone, I followed this page for conditional editing:https://answers.acrobatusers.com/How-I-conditionally-set-required-fields-form-based-user-answers-radio-button-q292291.aspx Yet this dod not work for me. I created hidden text field and created the code. It is not working, then I added to the Mouse Up event on the Radio Button and still is not working.This what I am trying to do. Also, what I will need to also figure out is iof the check NO, then I want to initialize the fields to the default value. I.E. Year = "Select a year (Default value on the List Dropdown)", the other 2 fields are spaces.If the button is Yes, Unprotect the 3 fields and make them requiredElse IF the button is No, then protect the 3 fields and make them not required. Here is my javacript code:var vY
I am examining a PDF document and trying to determine the *earliest* date it could have been created. The original document is lost and the copy has been passed around several times so the file system metadata is useless. Internally in the XMP metadata, there are no data for create/modify dates, but it does list the XMP Toolkit version:x:xmptk="Adobe XMP Core 5.4-c006 80.159825, 2016/09/16-03:31:08 "My question is simply this: When was this version released? It looks like September 16, 2016 but I cannot confirm this anywhere. I believe the version release date would establish the very earliest date the PDF could have been created.Thanks to anyone who can help!
I have a javascript running that depending on a drop list selection fills from 2 to 16 fields. Upon another list selection it resets all 16 fields and then repopulats with the new data. The problem I am having is if I try an type input into the form manually in one of the fields.....it deletes as soon as the data is commited ie I hit enter. I was using a do while loop do erase the fieds and the stop(used a for loop as well) and it still erases the data as soon as you commit the data. As soon as I comment out the this.resetForm([ "" + CountA]) code, the issue goes away, but i end up with any fields not being over written keeping the old data. I've tried using validation, mouse up/down, etc. Gots me stumped.
I want to make a dropdown list (drop1) as a required field with alert message: (please enter the delay code) if the difference between two fields (time1) (time2) is more than 00:05 (0.083333333333333) as a decimal valueAnd if the difference is lower than (00:05) It will not be a required field I want to make this script by JavaScript Any help please !?
I have folder level Javascript at 'C:\Program Files (x86)\Adobe\Acrobat DC\Acrobat\Javascripts'. The script at this location executes when Adobe App is opened, and in this script we already have code to add custom menu items. At this point "app.activeDocs" is null or empty.I would like to execute a javascript at Document level so that I can get current 'Doc' object and set Actions (DidSave,WillClose) using 'myDoc.setAction("DidSave", "TrustedCustomSave();");'Also, this Document level javascript needs to be applicable for all pdf documents.version- AdobeAcrobat Standard DCPlease suggest a way to set actions (DidSave,WillClose) on Document load.Any help would be much appreciated.
Hi all,I am new to Javascript, but have coded in VBA for a while...very different!I am trying to figure out how to add a fixed string to the beginning of a field after the user inputs their data. Any help would be awesome! Thanks...
Created a 2-page form with fields and properties assigned to them in INDD CC, exported PDF, opened PDF in Acrobat, selected "Prepare Form" only 8 of the fields created in INDD were recognized. (All but 1 field recognized on page 1 and none on page 2) Any idea how I can get all of the fields recognized according to the properties assigned to them in INDD? thanks for any help.
I am trying to create a fillable form. The program created many text boxes where I want check boxes. Is there an easy way to convert many fields to a different type? I found this 2010 answer. Is there a source for the script or another answer that is free of charge?How do I change a field type when creating a fillable form from an existing pdf? (PDF Forms)
Hello all, I'm not a javascript coder by any stretch, but I do understand coding... I'd like, if someone is willing, to help be with a script that changes a datepicker (dp1) strokeColor based on whether or not it's within 60 days (yellow) or 30 days (red) from today - all using the format yyyymmdd (in the Army lol) For example, today is 20200827 and if the date selected is 20201005 then the border of the date picker would turn yellow... Lastly, a button that would update/refresh the datepicker to ensure it was still accurate strokeColor.. Apologies for not having a working solution, I'm a noob...
Hi experts.I need to display a barcode EAN 128 in a text field.I know how to use a barcode font but I don't know how to calculate the string.I spent hours on the web, finding many calculators but nothing usable in a PDF form.Do you know where I can get such a calculator in PDF-JavaScript?Thank you.
I have a user who uses the Approved dymanic stamp. She had some trouble with her install so we uninstalled and reinstalled it. Since then, when she uses the Approved stamp, it puts someone else's name on it. This other user as never used this particular machine and we can't get rid of it. If someone else does sign into the machine, the stamp is correct. Others have found an 'Edit Identity' button, but when I right-click on the stamp, I don't have that. Ideas? Thanks!
Dropdown list1:2 different doses of the same medication:dose1dose2 Dropdown list2:3 different frequency of application of this medicineevery8hours (Q8h)every6hours (Q6h)every12hours (Q12h) I would like to have a script to calculate the possibilities in one place on a pdf form:dose1 (Q8h): meaning dose1 would be divided by 3 times per daydose 1 (Q6h): meaning dose1 would be divided by 4 times per daydose 1 (Q12h): meaning dose1 would be divided by 2 times per dayAnd the same for the dose2. Thanks, try67I would appreciate your help in this.Thanks,
I have a fillable PDF with a dropdown. I followed advice I saw on here and I have a text box that each selection is saved to. But the dropbox always shows the last selection rather than resetting. I have tried many things and cannot figure it out. I used actions for mouse enter and reset a field but only the one field.I used run Javascript and entered a line to reset. I tried mouse exit, up, down, onfocus annd blur just for the heck of it.An analyst from my department spend a couple hours on it too and he said it is set right but it is not doing what it is told.The closest it gets is it resets when the mouse gets near it afterwards. Like it works like a hover not a click.I also wondered if I could have each selection on its own line in my testbox. Currently it is separated by a comma and wraps unevenly at the end of the line. I have to turn this over to an end user and I hate to give it so messy. Thanks much!
Hello experts! I was wondering if anybody could help me figure out a way to increase a list of numbers by 10%. I was trying to replace the exact numbers but then realized I would just accidentally increase some by 20% since I wasn't keeping track of what exact numbers were being changed. This is what the list looks like or the whole PDF. This is to change some menu item prices. This PDF has a total of 25 pages. Any help will be appreciated. Thank you!
I have used the two below scripts with success to cause fields to display "N/A" and become readonly when a checkbox is checked and to revert back to allowing numeric entry only that is centered when unchecking the box. I need to do the same thing except when the box is unchecked, allow only a date to be entered in the field in dd-mmm-yyyy format. I have a checkbox with the following script: var myText = ""; // This holds the text I want entered in all the boxesvar myField; // Field object variablevar myFieldReadonly = false; // boolean for readonly property/* if the box is checked, then enter N/A into all the fieldsand also set to readonly. Otherwise, empty any text andallow text entry into all fields.*/if (event.target.isBoxChecked(0)){myText = "N/A";myFieldReadonly = true;} else {myText = '';myFieldReadonly = false;}// Loop through items 1 through 2 and set propertiesfor (x = 1; x <= 2; x++) {myField = this.getField("Group5.Text" + x);myField.value = '';myField.readonly
My expertise in Java is -1, so complete newbie here. I turned to this common link to learn about combo boxes: https://acrobatusers.com/tutorials/change_another_field/ and am slowly getting this to work on its own. Now my question, is it possible, using this code from the above link: // Place all prepopulation data into a single data structurevar DeptData = { Accounting:{ contact: "Steala Damuni", email: "accounting@mycomp.com", deptnum: "cmp1234" }, Engineering:{ contact: "Frank N. Stien",
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
¿Ya tiene cuenta? Iniciar sesión
¿Aún no tienes una cuenta? Crea una cuenta
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.