『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Unlock the power of Acrobat SDK through our community.
新着順
I have created a drop down list called 'Employee List' to auto populate to 2 different text fields, 'Employee Name/ID1' and 'Employee Status1', that part I've got.When picking from the 'Employee List' and 'Regular' auto populates to the 'Employee Status1' the number '1' will auto populate to another text field named 'PayTypeStatus1'. If 'Temp' auto populates to 'Employee Status' the no '2' will auto populate to 'PayTypeStatus2' etcThe other step involves a separate drop down list called 'Acting Rate'. If an acting rate is picked it will need to override the Regular or Temp Status auto populated from 'Employee List' to say 'Acting', then 'Acting' will auto populate the number'11' to the 'PayTypeStatus' text field.One more thing, if 'Auxiliary' auto populates to 'Employee Status' from the 'Employee List' the number 3 will auto populate to 'PayTypeStatus' BUT if an acting rate is chosen the status needs to stay '3', not '11' as described above.I'm hoping for help, please
I have 3 text boxes involved in this code. the first text box is called adults, the second is called children and the third is called result. Once the user enters numbers into the first 2 textboxes the 3rd should display a result, and the result will be different depending on the numbers entered in the adults and children text boxes. here is the code that I wrote for it but it isn't working.var a = this.getField("adults").value;var b = this.getField("children").value;if ((a == 1) && (b >= 5))(event.value == "FSR")else if ((a <= 2) && (b >= 8))(event.value == "FSR")else(event.value == "PAU")I have this code written in the "custom calculation" area of the result text box properties.
I'm creating a feature in acrobat reader to navigate to a web page when certain words are clicked.I'm using the 'addLink' function to do it by referring the book 'Developing Acrobat Applications using Javascript' but I'm getting the error 'addLink is not defined'Please help with possible solutionsThanks in advance
I am trying to figure out how to do this one last task for my document but I'm a little baffled being new to JS, but I have mastered how to auto populate a text field from a drop down box! Yeah!!Now I just need to figure out how to auto populate to my text fields from a check box, then I'll be done woo hooWhen the user ticks a check box (named 'Check box Sweeper 1') I would like the number '2' to auto populate to a text field named 'SSPHR1'.I will have 12 check boxes named differently that will need to do the same thing...When the user ticks the next check box (named 'Check box Sweeper 2') the number '2' will auto populate to the text field named 'SSPHR2 etcI'm pretty sure I have to put the script in the 'Custom calculation script' in the 'SSPHR1', 'SSPHR2' etc text fields, but I'm not sure the script I would use. Also, would I need to change anything in the Check box Sweeper fields?Thank you!!
I'm attempting to nest an if statement to display a validation alert and a secondary informational alert which works fine, but continually pops-up with each field calculation if true. I'm now trying to incorporate the oCheckbox parameter after reading THIS article; however, although it displays properly and though my hideWarning variable is accurately resetting to "true" once the oCheckbox is checked, it does not stop popping-up. Any ideas what I'm doing incorrectly? Any assistance is very much appreciated!Here's a simplified version of what I'm attempting:if (!isNaN(event.value) && event.value < 10) { // Test for field value is a number and less than 10 app.alert("Value must be greater than 10",1,0); // Validation alert var hideWarning = false; // initialization // Display Alert if hideWarning is false if(hideWarning == false) { // Test to see if variable hideWarning is false &nbs
I have 4 solutions with different expiry dates and I need to assign the earliest expiry date among the 4 for the final product. I am using Acrobat Pro and any help is greatly appreciated. Thanks!
I have a variable that is in decimal seconds.Example: 92.5How do I convert it to 1:32:50?
I have an Acrobat form with monthly and annual expense columns. I would like it if the user could fill in either with both autofilling the other while still leaving them fillable. So if the user puts $10 in the monthly column the annual would auto calculate to $120. But, if they change the annual column to $144 the monthly would change to $12. Is there a way to script this?[Title shortened for clarity, and because the example got cut off... -Mod.]
I have a list of pdf documents, all of them have "ABC" field which is a sum of fields Field1 and Field2. I need to change the rule and add one more filed to the sum.I use Tools>Action Wizard and JavaScript like this:var f = this.getField("ABC");f.setAction('Calculate', "AFSimple_Calculate(\"SUM\", \"Field1, Field2, Field3\");" );But after applying the action to the docs nothing was changed. What am I doing wrong?Thanks!
I am creating a dynamic stamp that I need to populate with information from the file path of the document that is being stamped. The file path contains a date that I need to parse out and input into the stamp. Unfortunately, I have only been able to get the document name or the file path of the stamp itself. Using event.source.source.documentFullName only gives me the document name without the path. Of course, this.path gives me the path of the stamp only. Is there a way, using javascript in the stamp, to get the full path? If this is not an option, I would need a way to prompt user to enter a date one time and be able to save that date to be used on subsequent stamping, so they don't have to enter it every time the stamp is used while Acrobat pro is open. It can reset once it is closed. The users need to stamp this specific date (and it is not the current date) on over 200 of the 500+ documents they review each time, and they don't want to have to e
Hi, i wrote a little app in excel (VBA) to fill a pdf and it is working perfectly on my laptop, i have Adobe Acrobat pro DC, but when i use it on another laptop i get an error:"Project or Library not found", the other laptop has an Acrobat Pro XI, and i have already included all the Acrobat libraries in references.please advise.
I found an entry in regedit.exe under HKEY_CLASSES_ROOT/AcroExch.PDDoc as: {FF76CB60-2E68-101B-B02E-04021C009402}Can someone confirm whether this is the correct CLSID?
I am using a validation code to in a text field, which I is to be typed into, to define a dropdown based on said typed in value. When I first started, the pdf would lag and show the options in the dropdown for the case I had just deleted from the typed field. For example, if you look at the code below, if I typed in "VS06", it would show nothing. And then, if I typed in "VS08", it would show the options for "VS06". But, I tried to make some changes, found out they didn't solve my issue, reverted back, and now, nothing is updating at all. Please help.var A = this.getField("Model #").value; //gets model numbervar B = A.substr(0,4); //isolating size switch (B){ //selecting size default: thisField("DHT CV Line").setItems(["nothing
I am trying to create a form in Adobe Acrobat XI Pro with three drop downs, two of which are dependent upon the selection made in the drop down before it.Given that I've never done anything of this nature previously, I have followed the advice given in this thread but am having an issue that didn't seem to come up there, and I couldn't find anything similar in other threads.The population of the dynamic drop down menus works fine, but I'm having trouble getting the values selected in the second and third drop downs to "stick". Initially, I did not set the field to "Commit selected value immediately", which allowed my selection to be made and held until I clicked out of the second drop down, then it reverted to the initial/top value in the list but the options in the third drop down were still related to the selection made but as soon as any selection is made, it also reverts based on the second drop down's reverted value. If I select "Commit selected value immediately in the opti
Hi All,I would like to seek help if there's anyone here know if there's any SDK/API which can help detect text with blue color RGB(0,0,255) and it's location within the PDF page? We are working on a project which will need this functionality. I'm also working with Pfizer and if there's Acrobat support team colleague who sees this one, please can you reach out to me via following email? Many thanks![E-mail add removed by Mod. Please, Do not write any private info in public]Bruce
Hey,I need a Function which will convert any given number to the german words like 820 = "achthunderundzwanzig"I've found an english version which works for e.g. 820 (I made a few changes to represent the german words for the numbers) except if the number contains ones at the end like 825 or 929 then it shows the word like: "neunhundertzwanzigneun" which should be of course "neunhundertneunundzwanzig"function int_to_words(int) { if (int === 0) return 'zero'; var ONES = ['','eins','zwei','drei','vier','fünf','sechs','sieben','acht','neun','zehn','elf','zwölf','dreizehn','vierzehn','fünfzehn','sechzehn','siebzehn','achtzehn','nunzehn']; var TENS = ['','','zwanzig','dreizig','vierzig','fünfzig','sechzig','siebzig','achtzig','neunzig']; var SCALE = ['','tausend','millionen','billionen','trillionen','quadrillionen','quintillionen','sextillionen','septillionen','octillionen','nonillionen']; // Return string o
Hola antes que nada me pase horas buscando en el foro algo parecido y encontré un post de hace 3 años pero no me funciono la solución hice un Formulario con Acrobat Pro DC y quería guardarlo para rellenarlo con acrobat reader y guardar el formulario rellenado con un nombre a medida.Quisiera saber si puedo crear un nuevo botón en el menú como "Salvar Formulario" que me permita guardar el formulario una vez rellenado con el contenido de 4 campos. Por ejemplo campo1 + Campo 2 + Campo 3 + Campo 4 + pdf y guardarlo en una carpeta como c:/formularios/pedidos/ Encontre este codigo pero me sale una ventana que me dice error interno al ejecutarlo en Acrobat Pro DC. app.addMenuItem({ cName: "Guarda", cParent: "File", cExec: "this.saveAs('/z/' + this.+ this.getField('Fecha').value + this.getField('Valor 1').value + this.getField('Valor 2').value + this.getField('Fabricante III').value + this.getField('Valor IV').value + '.pdf');"});
Hi, I would like a dropdown list be on a certain item based on a number on another field.So basically if I write a number on the field at the bottom that is higher than 10000, I want the upper field to show the option "Más de 10000". And if the user changes the selection on the upper field to any other option (except "Más de 10000"), remove whatever number it is on the bottom field.Many thanks!
Working on a POC to look for pattern e.g 12345-1234 and then create a hyperlink on it using javascript.My question is how to make 'getPageNthWord' function to include '-' while splitting words. As of now, when '-' is found, the word is cut as '12345-' and '1234' as I'm having the 'bStrip' value as false.I want as single word without any splitsAny kind of help is appreciated.Thanks in advance.
Hi,I am developing VBA code where I can use/Call the compare document tool provided by adobe in the DC pro version . How can I do that. Is creating a custom action a better choice. Also, I read in adobe forums that Compare tool is not available as an API. Automate Compare FilesIs it available in the latest version now.?Also, Is there a web service that I can use of Adobe that will let me do the PDF compare.Thanks
Hi, I was wondering if I could get some help with making a textfield required based on a particular radio button selection. I have a form that I'm creating and have several questions with radio buttons. For some of my questions there are yes/no radio buttons and if the user selects "yes", I ask "if yes, what?" with a textfield for their explanation beside it. How do I make the below textfield required, only if, the user selects the "yes" radio button?Thank any of you in advance for any help!Name of radio button "Yes"= coy Name of radio button group = Criminal_OffenseName of textfield for "If yes, what? = whatinput
I can't seem to find exactly what I am looking for. I have document that is two pages long with the second page being a hidden template. When the submit button is pressed on the first visible page a second page is spawned in between the first page and the hidden second (thus making the hidden template page 3). I am trying to figure out how to affix a "1" in a text field on the spawned page and then count up from there as the user completes the form and spawns more pages.So it Starts with: P1, (Hidden P2). But I'd like it to be: P1, Spawned P2 / #1, Spawned P3 w/#2, Spawned P4/#3, etc, Hidden Template page
I have a field that totals a series of fields. If the total plus another value of another field exceeds value of a third field than an alert message should be generated and the value be returned to 0. The filed returns a false value whether the validation criteria is met or not. Any assistance would be greatly appreciated!!!var IDC0=Number(this.getField("IDC0").value);var TA=Number(this.getField("TotalAward").value);if(((Number(event.value)+IDC0.valueAsString)>TA.valueAsString));{ app.alert("Total of Direct and Indirect Costs Cannot Exceed theTotal Award"); event.rc=false;}
Hello! I am very new to JavaScript programming within Adobe and am trying to pull an external list of strings (format can change, however, pulling from an Excel file would be most efficient) into an Adobe Pro DC JavaScript as an array, in order to search for that list of strings through the PDF. I have the code working so that I can hard code the strings into the JavaScript. Please let me know if you have any direction or can help me with this. Thank you very much for your time in advance!Chris
I have an archive of about 100 magazines in individual PDF files that I want to distribute, along with with relevant indexes. Each separate issue has bookmarks for its contents and I also have title, author and volume indexes for the whole collection. I want each magazine to include navigation to all these indexes but I'm really not sure I'm approaching the problem the right way.The approach I've taken is to add bookmarks to each magazine before its table of contents: one entry each for of the volume, author and title indexes with the action for each to Open a file. This works when I add by hand but it will take a *long* time to add to every magazine. I've tried Javascript and can automatically add the extra bookmarks but I can't add an action to open a file: it seems all I can do via the JS API is to run a Javascript and I've seen comments that this doesn't work on tablets or phones, and in any case it presumably needs all the recipients to have enabled JS.An alternative would be to c
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.