Unlock the power of Acrobat SDK through our community.
Recently active
Please help, I don't know how to apply these together in the same text field. Thank you!event.value = this.getField("WO1").valueAsString;var a ="";if (this.getField("Absence1").value == "Vacation (Construction)"){a="12";} else if (this.getField("Absence1").value == "Sick (Construction"){a="34";} else if (this.getField("Absence1").value == "Vacation (Maintenance)"){a="56";} else if (this.getField("Absence1").value == "Sick (Maintenance)"){a="78";} else if (this.getField("StandingWorkOrders1").value == "1122334 Maintenance"){a="1122334";} else if (this.getField("StandingWorkOrders1").value == "1122334 Maintenance"){a="1122334";} else if (this.getField("WO1").value == " "){a=" ";}event.value = a;
I'm hoping if someone can tell me if this is even possible.I have a dropdown list of work orders the user can select from which populates the number to another field called WO1. The WO1 text field also has a custom calculation script that adds a slash and period to the number ie. /11223344. Is it possible for the user to be able to enter custom text in the same dropdown text field without choosing from the list and still have what they entered populate to the WO1 text field? Thanks! //CUSTOM KEYSTROKE ON DROPDOWN TEXT FIELDif( event.willCommit ){ if(event.value == " ") this.resetForm(["WO1","UnitofMeasure1"]); else SetFieldValuesWO1(event.value);} //JAVASCRIPT DOCUMENTATIONvar WOData = { "112233 Inspection":{ WO: "112233", &n
The submit button in my Acrobat form composes an email that just lists the form fields on seperate lines. The email looks just fine everywhere except for Outlook mobile. When I send emails that have manually typed new lines, it looks fine, but when the email is composed from my javascript code, it's all on one line on Outlook 365 (android). Can someone please help with this?
Hi experts, I was wondering if it is possible to create a radial context menu using the Acrobat API/SDK. I have made a COM based program that talks with MS-Office (MFC/ATL) in C++ but now I need to integrate with Acrobat DC and the AVMenu is not what I am looking for. I have checked the examples and I could not find nothing but these examples AVAppRegisterForContextMenuSnip and ExternalWindows. Could you give some ideas or examples of how I can achive this? The radial context menu should appear as soon as I hightlight something (like the quick action menu). Here a mockup:Thank you!
I have a layer that is being used for QC, but then needs to be deleted by the QC workers.I want this to be completely automated so nobody has the possibility of screwing something up between QC and sending to the client.I found how to delete it through the preflight panel (See image below) - however I can't find a way to automate it. I can't seem to create an action with this, and I looked at the Applescript and Javascript reference guides and I can't seem to find a way to delete a layer from there either. Does anyone have any ideas?
Hello, I have 6 checkboxes that I want to determine the fill color of certain text fields. When I check the checkboxes, I want the text field that is to the right of the check box and the text fields under New Part Number, REF. P/N, and Desription to all be filled green as shown below. Now if I uncheck one of the checkboxes, I want ONLY the text field to the right of the unchecked box to fill transparent as shown below With the code that I am running now, I run into the issue of the text fields under New Part Number, REF. P/N, and Desription to also turn transparent when I uncheck one of the boxes as shown below I want all of the text fields to turn transparent ONLY when ALL of the checkboxes are unchecked as shown below This is the code that I am running in the mouse up in each checkbox (red if/else changes based on the text field that it is next to): if(event.target.value != "Off")this.getField("PN1-4").fillColor = color.green;elsethis.ge
Good day,I created a loan monthly payment calculation PDF with the following fields;- Current year: "_cYear" (a script adds in this value automatically.- Vehicle year: "_vYear" (this value is entered by the user).- Vehicle age: "_vAge" (this is calculated my simple script subtracting Current year from Vehicle year).-Vehicle price: "_vPrice (this value is entered by the user).- Term: "_term" (this value is the number of monthly payments, its value is selected based on the age of the vehicle using "if/else" function).- Interest rate: "_iRate" (this value is fixed).- Downpayment: "_dPayment" (this value is 15% of the Vehicle price).- Loan Amount: "_lAmount" (this value is the Vehicle price minus the downpayment).-Monthly payment: "_mPayment" (this value is the result of the formula).I get the desired results, however, I will like to include a button that will open a pop-up window that shows the following statement;if the vehicle is 7 years or less in age;"('_mPayment'/month, '_term' month
My fillable form has a submit button, but it will only work in Acrobat, and Acrobat mobile won't even work if the submit action contains javascript. My clients will not be using Adobe Acrobat, and I want them to be able to fill out and submit this form from their PDF reader. I see that other buttons, such as Print and other menu items, work fine on a few of the default PDF reader applications. Is there a way to make my submit button work?
My javascript for my Submit button runs properly until I try to get the final value, shown below:this.submitForm( "mailto:msanders2657@gmail.com?" + "&subject=good news" + "&body=" + "Name: " + this.getField("SellerFirstName").value + " " + this.getField("SellerLastName").value + "\nEmail Address: " + this.getField("SellerEmail").value + "\nPhone Number: " + this.getField("SellerPhone").value + "\nBest Time to Contact: " + this.getField("SellerContactTime").value );This script works just fine with the first four values, which are just text fields. However, the field "SellerContactTime" is a dropdown list with text options, and attempting to add it to this email causes my Submit button to do nothing. Can someone tell me why I can't submit dropdown form values and how to solve the issue? Thanks!
Not too long ago, I posted a question here about submitting form fields in a PDF, without sending the whole PDF (there are two forms on this document and each has its own submit button.) I correctly guessed that the following method would be the only way:-Use JavaScript to construct an email, and populate the body of the email using the form fields. Finding the right commands wasn't too hard. This script works just fine:this.submitForm( "mailto:msanders2657@gmail.com?" + "&subject=good news" + "&body=" + "Name: " + this.getField("SellerFirstName").value + " " + this.getField("SellerLastName").value + "\nEmail Address: " + this.getField("SellerEmail").value + "\nPhone Number: " + this.getField("SellerPhone").value );This will construct an email with the body in this format:Name: Jane DoeEmail Address: janedoe@example.comPhone Number: (555)555-5555 However, the following updated script causes my Submit button to do nothing at all:this.submitForm( "mailto:
I have a Problem with an advamced printing task.We have many scripts for a TV show to print. We print out each script for each actor. They rip out their scenes and throw away the rest of the script, resulting in 80% of the paper being wasted.Here comes my question. Is there a way to print out the script for each actor, only printing his/her scenes?It helps that in a script all character names are written in captial letters (e.G. "JONNY"), so a javascript could search for this exact name. And every scene ends on "***". So in my dummy mind I would need a script looking like the following:seacrh for == "JONNY"start printingend on == "***" I hope my problems gets across...That you so much for your time!Stay healthy
I am trying to open a PDF file with Excel 2013 by using VBA and then adding text to specific locations on the PDF. I have Adobe Acrobat 9 Pro installed on a Windows 7 PC with Office 2013.Thanks in advance.
Hello community, Part of my work involves filling out a fillable pdf with countless addresses, account numbers, and other information. The fillable pdf has fields for Name, address, city, state, and zip (as well as other infomation regarding an account). I don't mind filing this stuff in; however, after i fill it in the pdf, I also need to create a list of the same names and addresses in the following format name1street address1city, state zip1 name2street address2city, state zip2 . . . and so on for 3, 4, 5 . . . I would like to see if there is an easy way to take the fields off of the fillable pdf and put them into the word document using a tool or some script.
Hello, what I'm trying to do is change the background color of text fields based on a number in an array that matches with the name of the text field in my pdf. The numbers are 0 to 100. So if it is the number 0, it matches with one of the array elements then colors the background based on the first element. Here is the code I'm working on and I can't seem to get it to change the color, any advice on what I could do to make it work? ThanksBrian var colors = [ ['blue', 99,98,95,94,91,90,89,80,29,20,19,18,13,12,11,10,9,8,5,4,3,2,1,0], ['green', 25,17,16,15,7,6], ['brown', 24,14], ['red', ], ]; for (var x = 0; x < 100; x ++) { for (var i = 0; i < colors.length; i++){ for (var j = 0; j< 100; j++){ if (colors[i][j] = x){ getField(getNthFieldName(x)).fillColor = color.colors[i][0]; } } } }
Hi there, Very very new to javascript and still plowing through trying to get my document to work. I have had success with using this code (from George) on a spawn button to spawn two pages as XObjects, and then spawn two pages that refer to those XObjects (saving file space). var aTemplates = this.templates;var T1 = aTemplates[0];var T2 = aTemplates[1];var XO1 = T1.spawn(this.numPages, true, false);var XO2 = T2.spawn(this.numPages, true, false);for (var i = 0; i < 1; i++) {T1.spawn(this.numPages, true, false, XO1);T2.spawn(this.numPages, true, false, XO2);} This did well to shave the file size by over 50%, however I still have to spawn the XObjects each time for the subsequent spawns to have something to refer back to. The document is to eventually spawn 60 pages (30 generations of a two page template), and I thought I was oh so smart thinking that I could further save space by running the script in console to set the XObject pages, and then only app
Hello,I am looking for a javascript code that can save a specific page.The people who will use it all have acrobat reader DCIs this somehow possible because the dc version does not allow extracted pages.Is there another way to do this ?Maybe making a screenshot, or use something else ?I hope somebody can help me
I have a voucher form which when digitally signed, it autmatically inputs the current date in the "Date" field across from the digital signature. The voucher has room for three itemized line listings, with a "Date1, Date2 & Date3" fields at the beginning of each. I want the three subsequent "Date" fields to automatically input the same date I digitally sign the document (pull the same date from the "Date" field), but since I may only have one or two itemized line listings on the voucher, I don't necessarily want the "Date" fields on the empty line items to be displayed. I'm wondering if there's a script to pull data from one field, but only if a different field contains dats. Another thought would be to color code the "Date2" "Date3" fields in some manner that the data displays as "white" if another specific field (i.e. "SubAmount2", "SubAmount3") in that line item does not contain any data, and data displays as "black" if the same specificed field in that l
I've been trying to find some information on how to specifically reference a field name on a spawned page. My goal is to have my "spawn button" only displayed on the last page of the document at all times. I have currently have a hidden button on my spawn template, but would like to find a way to make it visible only on the last page (which is a spawned page). I've been playing around with this tutorial but can't figure out how to make it work for my purposes: https://wordwizardsinc.com/blog/finding-the-fieldname-prefix-on-acrobat-acroform-spawned-template-pages-using-javascript-functions/ Thank you!
I'm trying to create a simple script in which the selectged results in a drop-down menu field causes a specific response in another corresponding field. The "Property" field is a drop-down menu, and the "AccountingCode" field is where I want the specific result to display. The below script is what I entered in the AccountingCode field, but doesn't produce any result: var Property = this.getField("Property").value;if (Property=="property loss/damage") event.value = APC9AA6;else if (Property=="real property loss/damage") event.value = APC9BB6;else event.value = ""; Also, the Property drop-down field contains a blank entry (ie. 10 spaces using the space bar) to create a blank listing as the first entry on the default drop down listing. The purpose is to have the Property field default to blank to cause the employee to make a selection, rather than accidently tabbing through and using one of the pre-listed listings, which if blank, should reflect a blank in the Accoun
Hi I have Adobe Acrobat Standard DC. I want a vba code that can trigger the "EXPORT" to "Microsoft Excel Workbook" option.(see the attched snap) I have around 21k PDFs that need to be converted to Excel. I have tried adobe API references " iac_api_reference.pdf" and "Acro6JS1.pdf" I am intermediate level guy in VBA.
Scenario:I have 5 list boxes and they are linked hierarchically.Continent >> Country >> State >> Capital >> Post code Master list box: Continent names Dependent 1 list box: Country names Dependent 2 list box: State namesDependent 3 list box: Capital namesDependent 4 list box: post/zip codes Continent >> Country >> State >> Capital >> Post code The master list box has 6 continent names and rest of the each list box is populated with 75+ list items for country names, capital names, multiple zip codes within each city. Currently all list boxes from master list box to Dependent4 list box are connected in hirarchy oder and works perfectly.when I select Continent name is Master list box, I get right country names in Dependent1 list box. When I select the specific country in Dependent1 list box, I get the right state names in Dependent2 list box and so on.... Sample Example: 
I am new to PDF forms.I created three list boxes. Master List box, Frist Dependent List box, Second Dep List box.Master List box >> First Dependent List box >> Second Dep List box.I am trying to populate First Dependent List box based on selected item in Master List box. And trying to populate Second Dep List box based on item selected in First Dependent List box.When I select Master List box item, the First Dependent List box items changes accordingly.However I am unable to list any items in Second Dep List box and also unable to view any items in Second Dep List box when I select any item in First Dependent List box. I want :When Master List box item is selects, the First Dependent List box item should change. And when I select First Dependent List box item, the Second Dep List box item should appear/change. Master List Box >> First Dependent List Box >> Second Dep List BoxExample: Europe >> France >> Paris Can anyb
I have a form with 3 yes/no questions. I am using radio buttons (a, b, c). I need to trigger an event -- make a hidden text box visible -- only if the answer is 'yes' to all three questions.I have this code but it doesn't work. Not sure what's wrong. Please helpevent.target.hidden = !( (this.getField("a").value=="aYes") && (this.getField("b").value=="bYes") && (this.getField("c").value=="cYes"))
How can I embed multimedia (video and audio files) into a PDF that could be viewable offline? I am trying to make a PDF document for people to download before they hike a trail. In the document there will be the usual text and images, but also, I want it to provide video and audio. How can I do this so it may be completely viewable offline? Or is is this not possible?
I'm trying to make something like database.I use code in document level scriptvar fruits = {Apple:{ Color: "Green",Size: "Medium",Weight: "50" },};function SetFieldValues(fruits)I set fruit function in dropdown field where I select fruits ( in this case apple).Now I want to add text field with numbers to use same function, how to set my code so it depends on two fields(dropdown = fruits and text field = numbers)something like this:var fruits = {Apple, 1:{ Color: "Green",Size: "Medium",Weight: "50" },2:{ Color: "Red",Size: "Large",Weight: "80" },};How do i make it work?
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.