Unlock the power of Acrobat SDK through our community.
Recently active
Hi All I have a pdf form which eventually ends up in a size of over 200MB when filled, primarily due to Pictures. I want to create a submit button on the form which when clicked automatically compresses the file and attaches itself to the mail box. If this is possible requesting to please help with the script. thanks a lot for your help.
I'm looking for strategies to speed up the time it takes for an interactive PDF form to update. As I added more interactive elements it takes longer for the form to update if something is changed. For example, the "keyboard" wait icon is now on for about 3-5 seconds everytime make an update to a field. I'm wondering if working on calculation order will improve this, but figure it would be more efficient to see if anyone else has had to address this before diving in and playing with calculation order.
Hello!I have several checkboxes in my PDF, and I would like them to act as follows:• When clicking once, the check appears in white.• When clicking again, the check changes to green ["RGB", 0/255, 180/255, 160/255]• When you click again, the check leaves. .value = "Off"; And then, I would like to use these colors as conditions for some ifs.Something like this:if (this.getField("Checkbox1").textColor == ["RGB", 0/255, 180/255, 160/255]) { something happen }orif (this.getField("Checkbox1").textColor == ["RGB", 1, 1, 1]) { something happen } Is it possible to do these things? If so, how?I tried, but was unsuccessful. Thank you!
Hello, I am working on automating and preparing a form for digital signature. For prior military, I am referring to an nonjudicial punishment form. The form will be passed back and forth between a commander and a service member and they will add their intitials next options and then digitally sign. I have added a javascript code to execute onblur when the digital signature field is pressed. A dialog box appears and has the commander type his/her initials into one of two options. (I realize that I could use a radio button and it would slove my problems, but its the military and we require physically typing initials into the box). After the commander presses OK, a second window for the digital signature appears. A second javascript is then executed upon signature (from the signed tab) that places the date and time into particular readonly fields in certain blocks on the form (again I realize the digital signature has this information but this is the military and if the block isn't c
I need to be able to have a form with various fields to do computations based on various ranges. However, the best I have been able to come up with is the field range option which give me 0, 1 and 2 as options for the user on the form. The problem I have is that I need to exclude the 1. The solution I have been seeing but not able to do myself is the custom validation script. Is begging appropriate? I would really appreciate it.
Wondering if there is a way to make an image field always be at the back of the page, that is so all other fields will be on top of the image field so the white space in the image field does not obscure such text, etc. I tried moving it in the tab order to no avail.
Hello, community. 🙂 I am creating a fillable form with some calculation and dependent options.But, I am encountering some problems. I already searched Google, here in the forum (in all topics related to dropdown), stack overflow ... And I still couldn't solve it.The first problem, and the most annoying: I create a dropdown that is dependent on the values of other 3 dropdown lists, and that changes its content according to the choices of the previous dropdowns.I managed to generate the dropdown, with great difficulty, but when I click on an option, it does not keep the selected item, showing only the first item in the list.The second problem is that the list items only appear after I click on the dropdown and not before. It is blank / empty and, after I click it, it displays the result.I already checked the option to commit immediately after choosing, however, this did not solve the problem.I read, in another topic, that the "setItem ()" method is not the most suitable, b
Hello, novice here. I've attempted to pull information from two different solutions (credit try67 & johnk12695043 Validating Dates conversation). I assume I need the Today field to succeed, but if I don't, please let me know. I'm hoping I don't need it. Thank you for your attention! Today Field is using a script :"this.getField("Today").value = util.printd("m/dd, ddd", new Date());" My goal is to have two different alerts popup separately or simultaenously if it fulfills the following criteria: procedure date chosen is less than or equal to 2 weeks and 1 week from today's date. I'm using a Custom Date Text Field in the format of m/dd, ddd to give me (6/19, Fri format output). Was my attempt at this a complete fail? Below is the validation script I attempted to run.var sToday = this.getField("Today").value;var sProcedure = this.getField("Procedure").value;if(sToday.length && sProcedure.length) {var dateToday = util.scand("m/dd, ddd",sToday);var dat
Hi, I just want to create a small if else condition in js but obviously I´m not able..If the text in "Dropdown1)="Text_test" then app.alert("Mytext", 3); else = do nothing That can´t be that difficult? but I´m just not able.. Thanks in advanceLeo
Can someone please help me out with this.
sorry if this question is a repeated one. I am trying to make all the fields read only which has data when i try to save the pdf documnet.
I need to distribute a PDF file in 7 different languages. I was wondering if there was a way to have only one electronic file that would contain all the 7 different language versions and when a user opens the file have either Acrobat Reader select which language to display based on the current user default language selection or have the user select which language he wants to see the file displayed in.
Hello All,what I'm trying to achive is to insert a digitial signature box/boxes into a listbox. The content is that a person would select a few groups that then need and then the javascript would then insert the required amount of digital signature boxs AccessList.insertItemAt(cChoice, "s", 0); AuthList.insertItemAt("Director____________________________________" , "s", 0); AuthList.insertItemAt("Sign" , "s", 0); this.addField(cChoice, "signature"); the top 3 line works fine but i cant get the last line to worki need some help please
How to password protect(take off) PDF document using Javascript code?Pre-created a protection policy with the name "MySecurityPol", and run this code from the console in Acrobat Pro DC, but there is a syntax error! What am I doing wrong?var DoApplyMySecurity = app.trustedFunction( function(){ var oMyPolicy = null; app.beginPriv(); // First, Get the ID of My Security Policy var aPols = security.getSecurityPolicies() for(var index=0;index<aPols.length;index++){ if(aPols[index].name == "MySecurityPol"){ oMyPolicy = aPols[index]; break; } } if(oMyPolicy == null){ app.alert("Policy Not Found"); return; } // Now, Apply the security Policy var rtn = this.encryptUsingPolicy({oPolicy: oMyPolicy }); if(rtn.errorCode != 0) app.alert("Security Error: " + rtn.errorText); app.endPriv(); });I want to put a code in the form field to protect the document, when I click on the form, the code is launched and the document is encrypted.
I have one Main Form which has 6 PDF Files Attached into it. Now i want when the user click the submit button..... 3 specific files (which are as attachment to the main form) are attached to the email (not the Main form) . Is this possible.? Thanks
Hello Community,I was wondering if I can combine the if then statment with the submit form function. I already managed to send specific data of specific fields to an email address after hitting the "submit form" button I created. I was wondering if I can just send the fields where information has been changed? if "data in field A was changed" then send itif "data in field has not been changed" don´t send it Thanks in advance!
Hello Community,I am trying to write a folder level js script in acrobat pro that makes a HTTP post request to a server. It requires the value of the SSO token as the header in the request. When I made the request using postman by adding a header in the request as key="Cookie" and value="SSO=....;", it successfully hit the server and returned a response. On the other hand, when I tried to do it using the below code, it doesn't seem to hit the server and gets a redirection. I am not able to figure out what's the issue. Any help regarding this would be greatly appreciated.Thanks. ajax=app.trustedFunction(function(furl)){ app.beginPriv(); Net.http.request({ cVerb: "POST", cURL: furl, aHeaders: [ { name: "Cookie" , value: "SSO=....;" }], oHandler: callbackfn }); app.endPriv(); }); callbackfn = { response : function(...){ ... } }; ajax("https://...");
I am looking for help to make a time sheet. i found a script that calculates total time, I then need to:subtract lunch break.Split total after lunch into8 normal8 - 11.7 time + 1/211.5 hours + Double timehttps://documentcloud.adobe.com/link/review?uri=urn:aaid:scds:US:873daafa-25f8-48bb-afa8-d354b93abe7f Any help would be awsome!
Hello.I have 10 fields with very similar names, the beginning of the name is identical, what changes is only the end, which goes from number 1 to 10. I want to create two buttons:1) By clicking on this button, the display of fields 1 to 5 is visible. And the display of fields 6 to 10 is hidden.2) The opposite happens. Display of fields 1 to 5 is hidden. And the display of fields 6 to 10 is visible. Is there an easy way to do this?I was doing it this way:this.getField("Field1").display = display.visible;this.getField("Field2").display = display.visible;And etc., one line for each field. But this seems to be a very inefficient way. Thank you.
I am guessing this is a 2 part question/answer: 1) I am looking to use a button to open a new pdf fillable form2) When it opens that new form I want it to take the info on the form open and popluate certain fields Is this possible?
I have a fillable adobe pdf form with some text fields to add comments, which on occassion is filled in with text overflow. The problem is the text overflow can't be viewed after it's locked. Is there a way it can be set up so it can be viewed after it's locked, or am I searching for something that just can't be done? I can't find anything on the forums about this.I have it set up so the document locks when the manager adds their digital signature with the following script in the console...getField("Section Manager Signature").signatureSetSeedValue({lockDocument: true, flags: 128});Thank you!
I’m having a problem setting up my dynamic email button. It works fine if I use an email address without dashes (eg. smitht@dsv.org), but when I use the email addresses as shown below with a dash I get an ‘Invalid Email’ Warning. I don’t know how to set it up as that is how the emails are supposed to be and I don’t know how to resolve it. I have documented the script I have. Any help would be appreciated. Thank you!! //Submit button Actions Run a Scriptif(ValidFields()){ var cToAddr = this.getField("ForemanEmail").value; // Set the subject line var cSubLine = "eDAC " + this.getField("Date").value + " " &n
I have a form with two groups of related products and prices. When a user checks one product from the first group, I need it to automatically check the related product from the second group and display their prices if checked. They both need to uncheck together as well.The checkboxes in the different product groups need different names because I am also showing/hiding related prices based on the checkbox being checked and a variable quantity.My code doesn't quite work:The code for the First CheckboxDisplays the Price field when checkbox is checked, andChecks both boxes (First Checkbox + Matching Checkbox)but, it won't uncheck both boxes if one or the other is unchecked.var nHide = event.target.isBoxChecked(0)?display.visible:display.hidden;this.getField(“Price”).display = nHide;if (event.target.value!="Off") this.getField(“Matching Checkbox”).checkThisBox(0, true);Is it possible to get the checkboxes to check and uncheck together, just as if they had the same name?Thanks for any assist
I am looking to have a checkbox fill in a sales tax field. I would like the checkbox normally checked and fill in with the appropiate sales tax calculation (I am using TaxableTotal*.012). Than if the user unchecks the checkbox the field will go to zero. I am just not sure how to make this happen. Thanks in advance
I am new to this so I could use some help I am trying to get the length of a field and if the field <> 9 product an error. like "your field has to be 9 charectors.I have been searching and I can not find anything.
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.