『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Unlock the power of Acrobat SDK through our community.
新着順
Hi, I'm having little trouble with my code.What i want to achive is, if value is greater then 66, value need to be 66.Field is formated as percentage.Here is what I got so far:var HP = this.getField("HP").value;var P = this.getField("Protection").value;var W = this.getField("Ward").value;var result = 1-(HP+W)/(HP+W+P);if(P == 0){event.value = 0;}else if(event.value > 66){event.value = 66;} else event.value = result;Everything is working as intended except it doesn't show 66 if value is greater.
I'm working on a PDF order form and know nothing about Java.I need to calculate the in-state shipping cost (Field1) based on whether the buyer selected YES for in-state (Field2).The calculation would be Subtotal Price (Field3) * .20. In other words, the in-state shipping cost is 20% of the order subtotal.I'll need a calculation for out-of-state shipping based on similar fields with a cost that is 30% of the order subtotal.Thanks for any help/
I am sure this is very simple, but I have a Date field on all my pages of the form.What I am looking for is that when the date is entered on page 1, it displays on all subsequent pages with no tab to it on those pages.
Hi, I have this code:If(this.getField("field1").value <5){event.value = 1000;}Field1 need to increase by 5 (value<10,value<15,value<20...etc)up to 200 and event. value will decrease by 10 every time. Is there a way to do it without making really long code?
Is it possible to create a script so that when highlighting a text it is also copied? (to the clipboard) I would appreciate the answer, it would be very useful to know if it can be done or not. Thank you.
If possible, how to do it pls?
When will Adobe release native Apple Silicon versions (or Universal Binaries that include native Apple Silicon binaries) of Acrobat, Photoshop, and Illustrator?And when these are released, will Adobe also release Silicon-compatible versions of the respective SDKs as well?And will Adobe do a developer-preview of these softwares?Thanks
Hello Everyone, like many here, i am a newbie to the world of Javascript and im having a hard time getting this calculation working. I have a sheet, where a column of fields is entered manually with a time value, say 1:43. At the bottom of the page is a "total" field which i have managed to get to tally all the fields above it, except there is a problem, I cant get hours more than 24, so if the tally is greater than 24 hrs it produces an error. Also, i am unable to enter a time of greater than 23:59 in any feild. This is a problem , as engine run times are in hours and minutes, and not in days, hours and minutes. These are the codes ive found to work in a basic way, but any help in getting it to displah hours of greater than 24 would be appreciated. Jay// custom calculations script for the total time field // array of fields to total var aFields = new Array("Time.0", "Time.1", "Time.2", "Time.3", "Time.4", "Time.5", "Time.6"); // define total a
In a form I created, I have a Radio button RB1. If the RB1 is selected, I'd like to have an alert message ('too high') if the calculation in another Text Box (TB) is >1000.Thanks
I saw example in "JavaScript for Acrobat API Reference" to change text color depending on value, but I can't get it to work, I tried it in validation and in calculation but it doesn't work. What am I doing wrong? Here is code example:
Perhaps it is because I am overthinking this. I am creating a form where someone is reimbursed for mileage at the government rate of $0.575 (mileage rate). I created a cell where it would calculate the mileage in USD based on the number of miles someone drove (mileage=miles x rate). But at the end of the row it is supposed to total the mileage of 7 days. So if someone drove 1 mile each day it is showing as each days as $0.58 miles. Which is correct, but the total at the end of the row is $4.03 (which is $0.575*7=$4.025). But I want the total to show as $4.06 ($0.58 rounded product x 7 days). Can someone help me?
In the form I am creating, I have a Check Box. If the Check Box is selected, I'd like to have another Text Box populate with a Calculation.I currently have the calculation work but I only want it displayed when the Check Box is marked.
Hello, I have many pdf files created from tiff files of scanned technical drawings which tiffs treat as what so-called an "Image Mask" in them when we analyze them with acrobat Preflight tool, now I want to know what an Image Mask is? How can I make a tiff treat as an Image Mask when it is converted to pdf in a simple way or with a tiny add-on or .exe software?Thanks and Regards,Omid Mansourbakht
Hello, I am trying to create a drop down box that has the options within auto-filled based on the selection from the previous box. I found code that worked on the forums, but any time a choice is made, it will revert back to whatever choice is listed first within the code.Dropdown box 1 custom calculation script is:switch (event.value) {case "Select:": this.getField("SubProvType").setItems(["Please Make a Selcetion In The Previous Box First!"]); break; case "Choice1": this.getField("SubProvType").setItems(["A","B","C","D"]); break; case "Choice2": this.getField("SubProvType").setItems(["E","F","G","H"]); break; } This will display the correct options in the second box, but if
In my job function I have to combine fields to generate letters for different departments. I can usually cobble together a working form, but in this case I'm hitting a wall. I'm trying to combine a text field with a number field without loosing my number field formatting. Example: The following results in "The cost is 1000" while I am trying to get "The cost is $1,000.00"var cost = "The cost is ";var OS = this.getField("Old Salary").valueevent.value = cost + OS;
Hello,I know there are a number of posts about this but I still don't know what I'm doing wrong. FYI I am very new to Javascript, so I just need some actual help with the formula. What I need is when the result of an equation is negative, then the number turns to zero. For example, MLA is the text box I am using to calculate the formula. The simplified formula I had was (NA/12). However that number is often times negative. So I tried to do a javacript with an if statement and it just wasn't working. Can anyone help me with this? THANK YOU!
Hello,i have a problem in the LCD with a document.Can somebody create a fourth DDL (column) like and after the first three examples, which are also connected with the first three ones (like the example)? It is important, that the answers of the new fourth range DDL is addicted to the third one. Thx
We have an old version of X Pro in DVD form and have problem installing it. Is a there a link to install for old version product? Thanks Jackie
I have a PDF generated off site by a 3rd party developer, that contains an embedded 3D model window. I have developed a Javascript that applies a "Preliminary" stamp across the face of each sheet. This stamp interferes with the model interaction, so I would like to leave the stamp off or modify the stamp in someway if the window is present. The problem is we do not know ahead of time what sheet this window will be on. I am looking for a way to “scan” the page for this 3D canvas window. If I can find a way to identify this I could use an IF statement to skip this sheet when applying the stamps. The problem is I don’t see any unique identifier for this type of object. I am currently using Acrobat DC Pro.
Hi everyone, I'm trying to automate a custom button dedicated to page navigation, it would: 1. Set up a "mouse up" action to go to a destination at the bottom of my PDF. 2. Create a second button at the desired page in the PDF, it should reference where the original button is. Right now I've created a "destinations" tool to move to a specific page. However, I would like to set the destination to the newly created button and visa-versa. My employer struggles with technology and I believe creating simple buttons like this will help with the form creation and navigation. Here's some of my code: ("Buttons" is my array of buttons)for(var j = 0; j < buttons.length; j++){ if(buttons[j].name.substring(0, 7) == "FINDING"){ buttons[j].fillColor = color.blue; buttons[j].textColor = color.white; buttons[j].textSize
Hello, could you please help me to script the following in a pdf form:if A+B>10 then A+B=10Thanks
I'm currently creating a form where many of the questions are conditional and I have never worked with JavaScript before.For example, Q9 requires the user filling out the form to select radio buttons in Group "Q9" as "Yes" or "No". Based on their selection, a text box, another Yes/No set of radio buttons, or a list box will become required and change from "readonly=true" to "readonly=false". Another example, I'd like help with is for list box conditions. For example, Q9 has a list box appear after the Yes/No radio button has been selected, but the listbox has a second condition, the list box is multiple choice and if "Other" is chosen, a text box will become required and change from "readonly=true" to "readonly=false" as well to explain what "Other" is. Any help would be GREATLY appreciated!
I have a group of 2 radio buttons in two lines, related to the first the values a, b, (a*b)the second line a1, b1, (a1*b1). in a pdf form I would like to have a script that gives the following:if RB1 is checked the values a, b, a*b will appear, if RB2 is checked RB1 line will show no values and values in RB2 will appear and vice versa... RB1 a b a*bRB2 a b1 a1*b1 Thanks
My form uses a bunch of custom calculation scripts and it works as desired, but once I save it, those custom calculation scripts stop functionaing. Can someone please explain to me how to make it so, regardless of saving the PDF document, the custom calculation scripts continue to function.
Hello community, I'm creating a form which concludes an dropdown field with multiple choices and custom user input enabled. How can I add autofill/autocomplete suggestions from the entry list based on the user input? Example: Entrylist: Test, Tree, HouseUser Input: TrSuggestion: Tree Thank you in advance for your help,regards,Tobias
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.