『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Unlock the power of Acrobat SDK through our community.
新着順
My client wants the ghost text to be light grey and centred, while the enter data to the black and left aligned.I understand how to enter the default text and change the colour for the two but not alignment.Here what I have// On Focus script:if (event.target.value==event.target.defaultValue) { event.target.value = ""; event.target.textColor = color.black; event.target.alignment = 0}// On Blur script:if (event.target.value=="") { event.target.value = event.target.defaultValue; event.target.textColor = color.ltGray; event.target.alignment = 1}
I want to give a lower and upper limit to the (PDF) file size that can be uploaded into a PDF form field. How can I achieve the same?
I'm creating a form for work and I'm trying to reduce back and forth questions between clients. The form I am creating has the user input their birth date in (Field A). I already used the following script to automatically calculate the age and put it in (Field B):event.value = "";var dobValue = getField("dob").value;if (dobValue!="") {var dob = util.scand("mm/dd/yyyy", dobValue);var today = new Date();// compute age in millisecondsvar age = today.getTime() - dob.getTime();// convert age to years ( millsec in sec * sec in min * min in hrs * hrs in day * days in year)// truncate to whole years and adjust for binary floating point errorevent.value = Math.floor( age / (1000 * 60 * 60 * 24 * 365.2425) - 0.005);}I'm trying to get (Field C) to show after (Field B) reaches every five years at the following values: 20, 25, 30, 35, 40, 45 and every year 50. It is important that the field only shows on the zero/five years, but remain hidden when the value is one through four and six through nine.
Hi!there is a pda with pasted picturesIt is necessary to combine them programmatically into a single pictureThis is perfectly handled by the Scan document functionAfter it is pressed, a new PDP is saved, where all objects are mergedrummaged all API, but did not find an analog of this functiondo not tell me, is it in the API and how to call it?
I have a 28x14 grid of form fields that are named "Hour.1.1" where the first digit is the row number and the second is the column number. I have managed to figure out how to sum across the columns using a document level function and a custom calculation script, but I can't figure out how to tweak it to sum across rows. The code that works to sum across columns is below. Please help!!!// document level functionfunction SumH(cParent){var nSum = 0;var oParent = this.getField(cParent);var aParent = oParent.getArray();for(var i = 0; i < aParent.length; i++){nSum += Number(aParent.value);}return nSum;} // end SumH function// end document level script// Custom Calculate script// use document level functionvar sum = SumH("Hour.1");// field value is blank unless sum greater than zeroif (sum === 0) { event.value = ""; } else { event.value = sum; }
I need to duplicate contenet into new page when I click on button "ADD";
I made a custom stamp that I have been using for a while, it has 7 inputs to type in and with pop up boxes. My issue is that I have never had it working properly and every time I go near the stamp button the popups for data entry appear before I can choose the stamp. It gets really frustrating.I have looked for many hours online but I can't exactly work out which part of the code I'm getting wrong. I worked out that I needed to get the stamp name from the code (which I've done) but I don't know how to meld the event.source.forReal code with my code! I also had the javascript calculations seperate for all the boxes with inputs but I've seen that its supposed to work much better if you only have one script.My attempt at adding the code together is at the bottom. If anybody can help me out and let me know where I've gone wrong I would greatly appreciate it.Regards Jeremyif (event.source.forReal && event.source.stampName=="#lyvn1KW9WUYWKxxaJXcLDA") {e
Hi,I'm looking to make two matching sets of radio buttons. That is:Set 1: yes/noSet 2:yes/noThat autofill each other so they always match (both ways, so you can change either set and the other will change as well). I've done the auto matching with checkboxes before, but those don't give mutually exclusive options. How do I capture both functionalities?Thanks in advance!
I am working on a form that contains a drop down box (titled Rep) for the user to choose their rep from. When the rep is chosen, another field (titled RepEmail) is supposed to populate with the appropriate email address.When you press submit, the form will be emailed as a PDF attachment to the email address that generated.I have had this work on two occasions. The first time it worked the first three times I tried it. When attempting to show someone how it will work, it didn't do anything.I reworked every field and calculation again and it worked. This time I was able to choose different names in the drop down and the email changed appropriately. I pressed submit form and it popped up the email with the right email address and attachment.I attempted to show someone... and it stopped.You can choose a name in the drop down, but nothing generates anywhere else.I know the JavaScripts are right since they did work once... why would they stop?I have the cloud Ad
Hello,I have no javascript experience at all; however, I learned by searching on the internet that I need to create a Custom Calculation Script on my .pdf form to get it to do what I want. I researched and attempted it myself and was unsuccessful.I have four fields created that are named:NumofCriteriaMetTotalNumofCriteriaPercentofCriteriaMetCPRatingScoreCurrently, I have a simplified field notation (division) in the PercentofCriteriaMet as follows: NumofCriteriaMet/TotalNumofCriteriaand it is working.What I am trying to do is take the number auto-populated from PercentofCriteriaMet and assign a value based on the range below and have the value auto-populated in CPRatingScore0.0 to 0.59 = 00.60 - 0.89 = 10.90 - 1.00 = 2Also, I don't know if it makes a difference, but I currently have the PercentofCriteriaMet and CPRatingScore field set to "read only"If anyone can assist in helping me create a working Custom calculation script, it would be much appreciated.Shelly
I have a form which I have created that has a custom calculation script that fills a text field with a different line of text depending on a selection from a dropdown menu. I have this working well but I want to know id there a way that I can make the text editable after a selection is made as minor details may need to be changed.This is my code:var v1 = this.getField("Dropdown36").valueAsString;var v2 = this.getField("Dropdown38").valueAsString;var val = "";if (v1=="limited") { if (val.length > 0) val = val + "\n"; val = val + "limited number outcome";}if (v1=="basic") { if (val.length > 0) val = val + "\n"; val = val + "basic number outcome";}if (v1=="sound") { if (val.length > 0) val = val + "\n"; val = val + "sound number outcome";}if (v1=="high") { if (val.length > 0) val = val + "\n"; val = val + "high number outcome";}if (v1=="outstanding") { if (val.length > 0) val = val + "\n"; val = val + "outstanding
Hi, I've got a form already made with a blank table that the user fills in. Sometimes the user needs more rows in the table. I'm wondering if there is a way to add a button to the bottom of the page that can duplicate the page (a blank version). Is this possible?Thanks in advance!
Hello.Is there a way (javascript) to get the name of a field or a button when you click on it and display it with app.alert?Thanks in advance for your advice.
Dear all, I want to import the annotation from a fdf file which includes 3d annotes. (the model is in PRC format)I am using a c# program to call the function retrieveAnnotsFromFile(doc). The texts are imported successfully, but the views are missing.But when I call the same function with JS within acrobat through button event, the function works fine, all texts and views are imported successfully.I was wondering if I need to do something extra for importing the annotes views with IAC.thanks and regards,
Hello there,is it possible to add row to a existing table in a pdf form with js, where each cell of the new row contains a form-fileds.thx.
Is there a good way to spellcheck and check grammar of a large batch of PDFs? I'm using the latest Acrobat CC. If there are reliable scripts or third party tools for this sort of thing that would be of interest too.
Last week, before updating to the most recent Adobe Acrobat, company drawings were printed on 11x17 paper. After uploading the newest version of Adobe Acrobat, those same documents now print on 81/2 x 11 paper. How do I get the program to print on what is correctly needed, whether it be either size paper?
I have a form with required checkboxes highlighted in red.I have successfully added javascript to remove this border from my text fields once filled in, by running a custom validation script, but this script does not work for checkboxes. Can anyone help me with a script to simply remove the red border of a checkbox, once checked? I am new to javascript, so a script and location would be wonderful. Thanks in advance.
I am trying to figure out how to paste into several form fields (at once) across several pages to allow for room to paste into without having to paste text in segmented blocks based on the size of each form field?ThanksChris
I'm using Acrobat DC Pro.I am trying to show or hide a field based on the calculated total that appears in a field named NVCA Raw Score. The calculated field has possible numbers of 0 - 7. If the calculated field displays number 0 - 4, I want to hide the FLAGGED field. If the calculated fields displays numbers 5, 6, or 7, I want the hidden field to display. I've tried my best to cobble some JavaScript together from other scripts using < >, but the hidden field never displays. I've learned a lot from this group, but still need help every once in a while. Any help will be very appreciated.var nResult = this.getField("NVCA Raw Score").value; if ( nResult >= 4 ) { this.getField("FLAGGED").display = display.visible; } else if ( nResult <= 4 ) { this.getField("FLAGGED").display = display.hidden; } Many thanks,Charliecharlie6067
Is there a real patch or fix for CS6 Acrobat 10 that stops working after 30 days?I deactivated the product on a computer and reinstalled it on a laptop and after 30 days Acrobat stopped working, it was on the computer for a couple of years with no problems.Thanks Ron
I'm creating a form that will use pull down menus with basic choices to start. I will have the box checked to let the user enter custom text. Is there a way to have that custom entry automatically add itself to the existing pull down menu items so that it is available as an additional choice to the user the next time they fill that field out?
How to use "setFocus()" to focus on a field which name is "Texte1#1" (meaning the first copy of the field "Text1") ?Thanks in advance an regards.
I am needing to insert a single page mulitple times into a multi page pdf
I have a text field in Adobe DC with max length character = 92.i want a script who detect 3 deferent word in text field.if detect one by this words "adt12" "ep: " "ALB"count field by 1.e.g.: text1 field : "Check this name ep: CARLOS,ALB, 1998!"script found ep: and ALB there... And count++ text2 fieldany help there?
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
すでにアカウントをお持ちですか?ログイン
アカウントをお持ちではありませんか? アカウントを作成
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.