Unlock the power of Acrobat SDK through our community.
Recently active
I have submit button on a form that when clicked it sends a PDF attachement to a static mailto, with the cc, subject line, and body all based on a field entry. I based my code on this link:https://acrobatusers.com/tutorials/dynamically-setting-submit-e-mail-address/ As a result this is my code.var cToAddr = "application@email.com";var cCCAddr = this.getField("Employee_Email").value;var cSubLine = "Application for" + this.getField("Employee_Name").value;var cBody = this.getField("Employee_Name").value + "has submitted an Application for review.";event.target.mailDoc({bUI: true, cTo: cToAddr, cCc: cCCAddr, cSubject: cSubLine, cMsg: cBody}); It appears my code is just wrong. I've tried alternate variations but this seems to be the closest. The Javascript Debugger says:Acrobat EScript Built-in Functions Version 10.0Acrobat SOAP 10.0SyntaxError: missing } after property list4:SyntaxError: missing } after property list4:SyntaxError: unterminated string literal7:SyntaxErro
I have a two page form that once the user fills out and signs they click the submit button. The submit button has added to it a action mouseup javascript that makes all the fields read only and also generates a template page that is for admin use. So the idea is that once the form is submitted the person receiving the form on the other end will not be able to touch the fields on the first two pages but in the third page generated from the template. I have two scripts running in the button plus submit form:The first to generate the template page and hide two buttons:var a = this.getTemplate ("AdminUse");a.spawn();this.getField("Submit").display = display.hidden;this.getField("Reset").display = display.hidden; The second to make all fields read only://getField("Text_Field").readonly = true;for(var i=0;i<this.numFields;i++){var fieldName = this.getNthFieldName(i);if (fieldName == "FOR_ADMINISTRATION_USE_ONLY"){//console.println(i+":no:"+fieldName);... used in the debugger}els
Hi thereI am trying to populate two text boxes on a form triggered by one selection from a dropdown list.Each dropdown selection has two attributes that I want to display, with one of them able to be overwritten.My knowledge is limited but I have managed to get it to work for one attribute running this script on the 'Colour' dropdown Mouse up trigger:- this.getField("Colour").setItems(new Array(["",""],["Black","1995"],["White","1993"],["Grey","1998"])); And adding this custom calculation script to the 'Year' text box:-event.value=this.getField("Colour").value(This variable is fixed and can’t be changed by the user). I'd like to populate a second text box ‘Percentage’, with a colour attribute value (0.75%, 0.50%, 0.00% respectively), that could be overwritten by the user.I thought I could just extend the array to cover a third variable but I can't make that work.Can anyone guide me with how to do this?Many thanks
Hi experts I have a form in which a custom format script is triggered when the document is opened, which causes some fields to be reset unwanted.According to the documentation the custom format script is a user event, which should only be triggered when the field is activated.See: https://help.adobe.com/en_US/acrobat/acrobat_dc_sdk/2015/HTMLHelp/index.html#rhhlterm=processing&rhsyns=%20&t=Acro12_MasterBook%2FJS_API_AcroJS%2FForm_event_processing.htm Question: is it a bug or a normal and expected behavior?I could possibly share the file privately (it's a client's file). Thank you
The form has to be submitted to two levels so a new button appears for submitting to the next level. One the form is in the level 2 and level 3 state a "Denied" button appears where these two levels could deny the form and signature fields and submit buttons for level 2 and 3 completely disappear. I also have a "Undo Denied" button incase it is clicked by mistake to make everything reappear. Currently this when clicking "Undo Denied" this makes both level 2 and level 3 approval buttons appear which I only want one of them to appear dependinf on if the level two signature is already entered or not.If level two has already signed it then the level 3 submit button needs to be visible, but if the level two signature is not yet signed then the level 2's button needs to be visible instead. Level 2's button is called: Submit_to_DirectorLevel 3's button is called: Director_Approvedand Level 2's signature is: Manager_Signature I've written this, but I'm certain it'
Hi,I am wanting to create a script to select a particular value, based on date.Specifically, the selection will be based on the date occuring on or prior to 01/01/1996. The date field is "DOB" The field I want to autofill is named "CourseFee". I have two calculated fields and want to be able to select and autofill the "CourseFee" field based on the date.If the date is prior to the one above, I want a value (Under25) to autofill. If the date is later than the one above, I want the value (Over25) to autofill.Is this doable?
I have a form field in which a 4-digit number is entered, and:1. Upon exiting the field would like the @ symbol to appear at the beginning of the 4-digit number: Type "1234" and diplay "@1234"2. If the form field is blank (not used) then the @ symbol does not appear.
I am not sure if it is possible, I have a field that shows the time when the form was opened with the usual code: var c = this.getField("TimeStamp");c.value = util.printd ("HH:MM", new Date()); But I would like the time to change as time goes on. The user could have opened the form at 10:00, but took 20 minutes to fill the form, so I would like to see the 10:20 time shown. Is there a way to see the actual time in a field?
Hello, I am creating an Acrobat form for individuals in my office to use. I'm very close to done with it but there is one problem. They will occasionally need to add pages to the document and the footer with page numbers doesn't update. Because this document is being shared with hundereds of people I can't just tell everyone that they have to go to the edit page and then select header/footer and choose update. I was hoping I could make it into a button through Javascript? Is there a way for me to create a button that will open the header/footer menu? I've already tried adding it as an action item from the action wizard and adding it as a custom tool ... but still I can't select it for a button action and I don't see it when scrolling through the javascript menu items. There has to be a simple way to do this, right??
Hi all, I am seeing the following error when submitting a pdf:"An error occurred during the submit process. Cannot process content type text/html; charset=utf-8" The error is only occuring on a couple of client machines and most machines are successfully displaying an html page on submission. I am using the lastest version of adobe reader when trying to submit. When using fiddler everything seems fine with the submission and response. I think Adobe Reader is recieving the html response correctly, but doesn't know how to handle it and I am not sure why. I suspected the issue may be a permissions issue. I've tried adjusting every setting I could find in the secruity (enhanced) settings, but nothing has worked. I've attached an image of the current security (enhanced) settings. Does anyone know what may be causing this issue or have any suggestions on what I could try next? Thanks,mklingberg1
I am attempting to create a PDF membership form for my sports club and am stuck on one thing. I have a dropdown "MemYear" that is set with options "2020/2021", 2021/2022, and so on. When you select 2020/2021 it exports a value of "30 Sep 2020" to "TEXT1", 2021/2022 exports "30 Sep 2021" and so on/ If it is possible, I would like it so that in addition to the first export to TEXT1 it will also export "December 2020" to TEXT2 and when I select the next option it would export December 2021 and so on.I can figure out the first part of exporting to TEXT1, but am stumped on how to complete step 2, i.e exporting to TEXT2. Any help would be greatly appreciated as this one really has me baffled.Thanks in advance
This should be pretty straight forward I think but I'm having a difficult time finding the correct answer for what I want.I have six fields on a PDF form, I want the submit button to remain hidden until all six fields are not blank, then change to visible.I've tried different IF AND statements and just not getting it to work. Using Adobe Acrobat DC. Thanks for advice.
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.
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
Already have an account? Login
No account yet? Create an account
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.