『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Unlock the power of Acrobat SDK through our community.
新着順
Hello,I have a form with 4 groups of radio buttons ("Style" in the script below is one of the radio group names). I have created a text field at the end of the form where I would like the selection value from each radio group to display. I am able to get it to work for displaying one group value with the following, but need help with having it work for multiple group values?event.value = this.getField("Style").value;Appreciate any help.
I am new to programming anything in an adobe created form; I am trying to calculate the shipping cost to be added to the subtotal of an order based on the quantity of items ordered. If the number ordered is less than 5, the shipping cost is 10% of the subtotal, if the number ordered is 5 or more, the shipping cost is zero. I wrote the following custom calculation:var A=this.getField("TNB").value;var B=this.getField("Subtotal").value;var C=0.10*B;if(TNB=>5){Shipping==0};else {Shipping==this.getField("C").value};I am getting the following error: "syntax error 5 at line 6"Can someone help me
When I save a PDF as a Word Doc, any word that contains a ligature (for example fi) -- the rest of the word after the ligature is replaced by a tab. How can I make it stop doing this?
How can I search through my list of bookmarks and assign a JavaScript action to the one I am looking for?If I run the following script:for (var i = 0; i < this.bookmarkRoot.children.length; i++){console.println(this.bookmarkRoot.children.name);}I get the top level of my bookmarks but not the bookmarks nested under these.Console shows:Schematic Tools - Volume 1Schematic Tools - Volume 2Here is what my bookmarks look like:I am needing to look for specific bookmark names and assign different JavaScript functions to them.So something like this is what I am looking for:for (var i = 0; i < this.bookmarkRoot.children.length; i++){if (this.bookmarkRoot.children.name == "V1 - 021 (Orange)"){cExpr: "oneTwoOne();"}if (this.bookmarkRoot.children.name == "V2 - 032 (Red)"){cExpr: "zeroThreeTwo();"}}How do I search for the nested bookmark and assign it my desired function?Any tips would be appreciated!
hi, I have the following script which isn't working?I would like the MINISPL!1, MINISPL2, MINISPL3 to bring up MINI SPLASH VLUe, and numbers 4 - 6 to bring up MINI SPLASH WHITE??The blue will end up in one field, the white in another? hope this makes sensefor (var i=1; i<=6; i++) { if (this.getField("MINISPL"+"1","2","3").valueAsString=="text") { event.value = "MINI SPLASH BLUE"; break; }}
I have a fillable pdf that works as a to-do list. I take items off and add to it daily. Is there a way that when I remove a completed task, all the task below it move up? If so how would I do that? Any suggestions.
I have a trial version of Acrobat Pro DC and am doing a proofreading job that requires changes to be seen, but at present they are not. My question is: can they be seen? If so, how? And if not, which program with a free trial can I use to do so? Thank you.
I am wanting to use one of three radio buttons to change comments in another section of the form. The form is for an elevation certificate and the radio button options are construction drawing, under construction, and finished construction. At each stage there are different things needed in the comments section that deal with the stages of the EC. Is there a way to link the comments in the comments section with the radio button choices so I don't have to type them in each time?
How do you formulate an IF function where if the value of Field "C" is less than 70,000, then the value of Field "Tier 2" is not formulated?Right now, this is what I have:event.value = (70000-this.getField("C").value)*0.2;if(C<70000)event.value,"Not Commissionable"I know this isn't correct as I am not a professional with Javascript or Advanced Calculations, but I would like to know how to do this.Thank you!
Is there a way to measure performance parameters like time until document is loaded or render complete?Trying to understand how long does it take to load some of my "heavy" documents
I have a pdf with form fields and need to do conditional formatting. Below is the formula as it would be in Excel. The Adobe field names are named the same). I am getting a SyntaxError when I past this into the custom calculation script box. Is there a better way to do this?=If(and(SoftCosts/(MSRPPricing+SoftCosts)<.25),(EquipmentMSRPPricing/(MSRPPricing+SoftCosts)>.25),”Yes”,”No”))
I'm a novice at this so I'd appreciate any help. I've done a lot of searching in forums and can't find a full answer to my problem. I have a 12 page form, mostly text fields, but also radio buttons and check boxes. I have many check boxes/radio buttons that when selected reveal a hidden text field. I want to add an option to clear the form, but when I set up a reset button using the "Reset a form" default action, it not only clears the form, but clears out the hidden form field properties and they all are visible again. I want to create a button using script to clear the form while keeping all form fields in their original state. In my searching I found this script:var nButton = app.alert({cMsg: "Warning: You are about to reset all data in the form. \n\nDo you want to continue?",cTitle: "Reset Form Data",nIcon: 1, nType: 2});if (nButton == 4){ xfa.host.resetData(); xfa.form.remerge();}I am assuming something like this will work and I know
I know there are document-level advanced formulas, but that's way beyond my level. I have an order form that is working well, thanks to Adobe community help . Quantity x Price = Product Total. I am at the total dollar for all products field, and once again want the field blank rather than $0.00 to start. So I'm not using the basic 'select all the fields option'.I'm about to put the following code in which, with 49 fields, will be quite lengthy. I am also applying the Number AsString coding offered for a previous issue, but don't know if that is the right use here. (I presume it is since I am adding numbers.) Is there a shorter way (without going to the document level coding), or do I just keep adding fields?I did try it with 49 qty but the total was shifting the decimal place: $10.50 + $8.50 were added as $105.00 and $85.00. When I took it back down to test as just qty1 + qty2, it is working ok.Thanks for any insights and assistance.var qty1 = Number(this.getField("tikmb").valueAsStri
The following is my code:Public Function SplitByBookmarks(strPathFile As String)'THIS COULD BE THE BIG ONE!!!Dim AVDoc As Acrobat.AcroAVDocDim PDDoc As New Acrobat.AcroPDDocDim NewPDDoc As Acrobat.AcroPDDocDim AVPageView As Acrobat.AcroAVPageViewDim PDBookmark As AcroPDBookmarkDim strFile As String, strPath As String, x As Integer, i As IntegerDim JSO As Object, BookmarkRoot As Object, Bookmarks As ObjectDim PageIndex As Long, PDFFilePath As String, BMArray(50) As String 'It gets the bookmarked page!'Get PDF path and file name (this will eventually work like the bookmark selection below)'Set PDF document variablesSet AcroApp = CreateObject("AcroExch.App")Set AVDoc = CreateObject("AcroExch.AVDoc")Set PDDoc = CreateObject("AcroExch.PDDoc")Set NewPDDoc = CreateObject("AcroExch.PDDoc")Set PDBookmark = CreateObject("AcroExch.PDBookmark")AVDoc.Open strFile, vbNullSet AVPageView = AVDoc.GetAVPageViewAcroApp.Show'***********************************'SETUP, FIND AND CONVE
I've been using a 3rd party tool to merge documents from an Access database for several years. My client was using Acrobat 9.xx but recently upgraded to Acrobat 2017 and the code no longer works. This process merges as many as 100 pdf files, one at a time, into a master report for my client is critical as they perform this action several times a quarter.As I said, we have been using a 3rd party tool and I basically shell out a simple command to merge two documents into a third:pdftk C:\...\Budget\2019-03-06-09-51.pdf C:\...\Budget\002.pdf cat output C:\...\Budget\Temp.pdfCan I do this with Acrobat 2017?
Hi All , We would like convert PDF to Excel using SDK /API / Programming Toolkit and Achieve exactly same output what PDF to Excel Converter desktop plugin achieves. It keeps the excel formatting ( e.g. Merged Cells, Font , Color , etc. of Table content inside PDF) intact while converting tables inside PDF to Sheets in ExcelIs this possible and if yes, what is appropriate SDK and License Details? We are okay to purchase this license.Thanks ,Mayur
if(text32>601,text32*1,text32*text10)Please help to convert above mentioned formula in java script Thanks in anticipation
Hi there, I'm stuck on this annoying bit, pls halp!I need this script to check required fields, and for a popup to appear and not allow the sending until all required fields are filled in.I tried "else" but it won't work (it continues to send the email after anyway). I think I have something mixed up. I added "then" and it checked the required fields and didn't send the email but I cannot add the required field and submit the form via email, so that's not correct...Could you help me?var requiredFields = new Array();for (var i = 0; i < this.numFields; i++){var fName = this.getNthFieldName(i);var f = this.getField(fName);if (f.type!="button" && this.getField(fName).required && (this.getField(fName).value == null || this.getField(fName).value == '')){requiredFields[requiredFields.length] = fName;}}var error = "Please complete the following fields: \n\n";for (j=0; j < requiredFields.length; j++){if (requiredFields.value == null){error = error + requiredFields + '\n';v
I have two pdf forms, one in English language, the other is in Arabic, how to restrict the fields of each form to accept only English text for the fields of the English form, and only Arabic text for the fields of the Arabic form? thank you
try67 was nice enough to provide this script (see below). It works great but I noticed it allows me to enter text in the field. Don't want that. The field should only allow a dollar amount to be entered and accepted. Can someone show me how to modify this bit of script to not allow text? Thank you.script:if (event.value) { event.value = "$" + util.printf("%,0.2f", event.value) + "/ per foot"; }I've placed the script under Custom Format.
In an order form, I would like a field to stay blank unless a quantity has been purchased, so I am writing code instead of using the basic option of selecting fields (which works). I need a total number of t-shirts purchased based on five sizes. At first, it seems to work, but with no reason I can detect, it stops adding the numbers and instead treats them like a string. Example: 5xs + 5m gives me 10total. Then if I add another 5l, I get 555 as the sum. (The shirt sizes and quantities are irrelevant to the outcome.) Obviously, there are more advanced ways of doing this that go way above my level of knowledge, but can anyone tell me where the problem is?var qty1 = this.getField("qTYikmpxs").value;var qty2 = this.getField("qTYikmps").value;var qty3 = this.getField("qTYikmpm").value;var qty4 = this.getField("qTYikmpl").value;var qty5 = this.getField("qTYikmpxl").value;if( (qty1 + qty2 + qty3 + qty4 + qty5) > 0) event.value = qty1 + qty2 + qty3 + qty4 + qty5;else event.value = "";The se
I'm trying to add a script to the custom format window of a text field so I can have the results show like this - $22.33 per foot (or whatever dollar amount entered). I've been playing around with this bit of code but cannot get it to do as I want. Can someone help me out? Here's the javascript that comes closeAFNumber_Format(2,0,0,0,"$/ per foot",false);
Not so much a problem with any scripting. I was wondering why aren't people, especially companies using PDF to streamline their workloads and take advantage of the powerful tools at their finger tips. I know some out there do but I am very surprised at how many people I know in the business world that own a version of Acrobat (the full program) and just let it sit on their computers doing nothing. Instead of using it to make their jobs easier and to create a custom app or form that would save the company so much time. It absolutely amazes me. I have a few good friends that own big companies and I witnessed the employees struggling to get even a letter written. I mentioned to my friends to utilize the Acrobat program they own and they were just not interested in hearing anything further about incorporating PDF's into their company. Here they spent at least $450 on the Acrobat program and it just sits taking up space on their computer. Through the years (from version 3) I have become a v
I have written this code for a combo box (qmblu) with the quantities as seen in the formula, but the only value displaying is for qty=1 (I checked by changing the numbers to 1, 2, etc, instead of 12.22 and '1' showed in the price field). Even the else "" is being ignored with default on the first value. Can anyone please tell me what I'm missing? The combo box works - my product of the two fields changes based on quantity changes, but always multiplies by the same price. I'm not a coder; created this based on Thom Parker's articles, but it makes sense to me...Thanks!var qty = this.getField("qmblu").value;if( qty=1 ) event.value = 12.22;else if( qty=2 ) event.value = 12.22;else if( qty=3 ) event.value = 12.22;else if( qty=4 ) event.value = 12.22;else if( qty=5 ) event.value = 10.80;else if( qty=10 ) event.value = 10.44;else if( qty=20 ) event.value = 10.44;else if( qty=50 ) event.value = 9.72;else if( qty=100 ) event.value = 9.36;else if( qty=200 ) event.value = 9.36; else event.value =
var CostCenterFields = ["CC.0.0.3", "CC.1", "CC.2.1", "CC.2.2", "CC.2.3", "CC.2.4", "CC.2.5.0", "CC.2.5.1","CC.2.5.2","CC.2.5.3","CC.2.5.4.0","CC.2.5.4.1","CC.2.5.4.2","CC.2.5.4.3","CC.2.5.4.4","CC.2.5.4.5","CC4","CC5","CC6","CC7","CC8","CC9","CC10","CC11","CC12","CC13","CC14","CC15","CC16","CC17","CC18","CC19","CC20","CC21","CC22","CC23","CC24","CC25","CC26","CC27","CC28","CC29","CC30","CC31","CC32","CC33","CC34","CC35","CC340","CC341","CC342","CC343","CC344","CC345","CC346","CC347","CC348","CC349","CC350","CC351","CC352","CC353","CC354","CC355","CC356","CC357","CC358","CC359","CC360","CC361","CC362","CC363","CC364","CC365","CC366","CC367","CC368","CC369","CC370","CC371","CC372","CC373","CC374","CC375","CC376","CC377","CC378","CC379"];var SiteNumberFields = ["SN.0", "SN.1","SN.2","SN.3","SN.4","SN.5","SN.6","SN.7","SN.8","SN.9","SN.10","SN.11","SN.12","SN.13","SN.14","SN.15","SN.16","SN2","SN2_2","SN3_2","SN4_2","SN5_2","SN6_2","SN7_2","SN8_2","SN9_2","SN10_2","SN11_2","SN12_2","SN13_
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.