Introducing Community Challenges: Create & win Firefly Pro 👗✨
Unlock the power of Acrobat SDK through our community.
Recently active
var num=12var num1=33var hm=applevar al=orangeif var's has values:var num=12var num1=33var hm=applevar al=orangethis.getField("Text1").value="check"+num+" "+hm+" "+num1+" "+al+" with :"i want thischeck 12 apple 33 orangebut when i have var num=""var num1=33var hm=""var al=orangecheck 33 orangewhy var with "" system add space? how to add "nothing"e.g.check 33 orange
Hi - i am trying to figure out how to generate PDF's on demand via an API call. I build a template and then populate it based on content I have generated with the users content. I would like to stay in the Adobe stack. Can i do it? What products do i need? I could do it in Webmerge or PDFGenerator (comments please) but would like to leverage DC and the design stack in Adobe. Can't see any info on this anywhere. Any pointers please?
!So, I'm trying to fill in a form I made with information in a txt file and then save it to one of a number of folders according to information in the form. I have a series of folders setup named after number ranges (i.e. 1-49, 50-99, 100-149, etc.) and some of the folders are preceded by the letter "z" because our numbering system for what we're tracking with these forms includes some names formatted with a Z at the end ( the people here before me kinda suck).The logic of the code I'm trying to correct is such (if you just want to see the code it's below):import text data within a while loop -> use indexOf to search the target field value for the letter Z -> use switch to setup 2 blocks of code, 1 for values that contain "z" and 1 for values without "z" -> determine which code block to run based on the "z" -> use substr(0,3) to pull the first three characters from the value and use that in the code blocks to compare to our number ranges to see which range the number
i have a pdf file with javascript, the code works perfectly as long i´m working in the file, but when i use the "save as other/reader extended pdf/enable more tools" and i open the new file, the code no works at all.i use the javascript console and i got this message: ReferenceError: showCharCount is not defined1:Field:Keystrokei´m using this code to get the character count of a field:in the fields from which I need to take the count, in the custom keystroke script:showCharCount();in a second, thirtd and fourt field (this fields are not visible to the end user, it is only for the following function):// Document level function function showCharCount() { // gets whats on the field var num = AFMergeChange(event).length; // show characters getField("count").value = num; }and finally in the "totalcount field":// Set the minimum number of characters
I'm trying to create multiple pdfs from one base pdf using records from a database. I'm looking to do this from forms on a site, so I'm also hoping someone knows of a good service to use where this is possible. My first idea is to use AWS and see if I can get an instance setup with Acrobat in order to do this. I'm not quite sure if this is the route I should be going, so I'm open to any suggestions as well.
hello, i use this on Text field :event.value = event.value.replace(/\,AbAb/g, "1234");program check if AbAb and replace it with 1234how to run only one time this loop? and if i write again AbAb the keep AbAb ??
How would you auto-populate an image with the conditional of a text field if the images are on the same document?If you type A in text field 1 then an apple appears (image 1). Is this possible? How do I do this?Thank you!
it is possible to write something like this and work?var fields = ["Dropdown14.0","Dropdown14.1","Dropdown14.2"];var fields1 = ["Text1","Text2","Text3"];for (var i in fields && i1 in fields1) { var f = this.getField(fields); var f1 = this.getField(fields1[i1]); if (f.valueAsString!=1==false && f1.valueAsString!=2==false) total++;}i now the syntax "for in" check only one table at the time... it is possible to check 2? because now this not work...
So I was completely unaware of javascript and calculations forms within the PDF world, but it would come in handy for a project I'm working on.This is an order form for printed collateral. I've designed it into categories (per type of print), and 4 columns in each row for quantities, and a checkbox for each quantity.I've done the pre-work by defining all of my checkbox values and unique names, now the hard part.I want to have a subtotal calculated from a selection of checkboxes, then each subtotal from each category will be added for a final total value. I've tinkered around in the 'prepare form' calculation property, but it doesn't revert to zero when a checkbox is deselected, and it recalculates all boxes checked every time a new box is checked. Ex: 250 is checked, and it calculates 115, but if an additional box is checked with a value of 145, it calculates it at (115 x 2) + 145 = 375, and it simply adds the value every time a box is checked or unchecked.Is there way to predefine eac
Batch conversion of PDF to Docx and then back to PDF in one go using action Action.A script would be helpful.
I want to have a checkbox if based on the values from a combination of other checkboxes, ex; if 2 or more of 7 checkboxes are filled I want checkbox 8 to autofill. if only 1 of other 7 checkboxes are filled checkbox 8 does not autofill and is left blank
I have a loop to iterate through all of the fields and copy them from a target pdf to the current pdf. This currently works well with manually calling the fields, and with console.log within the loop. But as soon as the field.value is updated with the field.value of the other pdf the software crashes (infinite loop?). It even crashes if the field.value is manually set for all fields. I must be missing something simple..Here is my code: thisDoc = this;var docName = app.browseForDoc();app.openDoc(docName.cPath);var d = app.activeDocs;var thatDoc = d[d.length-1];var i = 0;while (i<thatDoc.numFields){var oldName = thatDoc.getNthFieldName(i);var old = thatDoc.getField(oldName);if(old.type == "text"){ if (thisDoc.getField(oldName) != null){ var cur = thisDoc.getField(oldName)cur.value = old.valueAsString; }} i++;}thatDoc.closeDoc();Any help would be appreciated.
I need to create a BUTTON in a form, that toggle between showing and hiding a set of extra form fields.but in the BUTTON properties window, I don't find this option:((I saw this image in an article :
Need Java Script for Calculation of Number Days between 2 dates. Using Adobe Acrobat Pro DC and creating a fillable form.MatDate1 - IssueDate1 = Number of DaysThanks!
Of the many many many issues with scripting issues there are with writing code in Acrobat, this one I have not found a work around. How are we supposed to find the inner document window rec when none of the window rec functions work?
Summary: I need a drop-down menu to populate with numbers that a client will enter themselves from a previous page in fillable forms. Is this possible? Is it possible if i make it all on one page?Context:Page 1 of the PDF is a fillable form. I sent this to clients, where they fill in some forms including their Account IDs. This could have anywhere from 3 to 100 answers put into it depending on the client it's being sent to. For example: say the group is Coca Cola and they have 45 accounts. Each account will be here with a unique account number.On the next page, the Account ID's need to all auto-populate into a dropdown menu. Is this even possible? I have this working in excel, it grabs a section of rows (b7 through b107) and auto-populates the list depending on what's entered in those areas. Keep in mind: I did NOT set up this excel sheet, i've been tasked with designing it and updating to PDF for easier use... I cannot manually put in the drop-down menu as it will be different for eac
Currently I've designed a form with text fields whereby I can either type in "Not applicable" or numerical values. However, the default formatting does not cater to my requirements. Can anyone kindly guide me in regards to formatting using Javascript as I'm totally new to Javascript?
Is there a way to interact with COM/OLE, specifically the AcroExch.app function, without the need of a full Acrobat Pro/Std installation?If not, is there any licensing specifically allowing these actions? Or I need a full install of Acrobat it should work.Thank you
Is there a way to automatically populate data from the field you just entered into? When you click the second field, it will populate the data from the first field. If you don't click the second field, it will remain blank. If you delete it, the first field won't be affected.
I use to be able to create a fill-in form, it would keep a copy of the forms I filled out when I selected to fill a blank copy, Adobe would keep the previous forms in the same file. It would act as a database keeping all the information in chronological order. I was also able to search the form's fields in all the transactions. How do I save created forms with this feature or is it no longer available?
I'm working with two date fields. When a date is entered into the first field(LeaseStart_af_date), I need the second field(BillStart_af_date) to display the 1st day of the month following.So, if Lease Start date is 11/07/2018Bill Start should be 12/01/2018I'm using a custom calculation script for BillStart_af_date but it is not calculating. The field 'LeaseStart_af_date' does not use any calculation. Neither field is validated. Both fields have format set to 'Date mm/dd/yyyy'. I'm sure its an error with my script. Any help would be appreciated.var d = util.scand("mm/dd/yyyy",this.getField("LeaseStart_af_date").valueAsString);if (d.getMonth() == 11) { d.setMonth(0); d.setFullYear(d.getFullYear() + 1);}else { d.setMonth(d.getMonth() + 1); d.setDate(1);}
I am trying to import mark-ups based on the value of a dropdown on the page.I currently have the import script as a toolbar button. I have several different pre-made styles and need the dropdown "RISER_TYPE" to import the mark-up associated to the value when selected. EXAMPLE if "RISER_TYPE" dropdown = "example value-1" then IMPORT("C:\PDF MARK UP TEMPLATES\TEMPLATE-1 REV 1.0.bax" , if "RISER_TYPE" dropdown value = "example value-2" then IMPORT("C:\PDF MARK UP TEMPLATES\TEMPLATE-2 REV 1.0.bax"))
I am very new to Javascript. I am trying to get a field to display a value of one of two other fields based off of a third field results. I cannot find what is wrong with this script.var v1 = Number(this.getField("Built on Site").value);var v2 = Number(this.getField("BOS Total").value);var v3 = Number(this.getField("Text10").value);if (v1==1) {event.value = v2;}else {event.value = v3;}
I'm using Acrobat 2017 on a Windows 10 machine and trying to automate some functions on a PDF form. I have been reading the forums and I'm not even sure it is possible now. Could someone on this forum please save me some time and tell me if this even possible so I can drop it if I can't even do it?1. Save the data from the PDF form to an Excel spreadsheet to a specified location on a SharePoint server.2. Flatten the file and save the whole PDF to a specified location on a SharePoint server.3. Save the file again to a dynamically set folder on a SharePoint server.4. Delete the original file from the SharePoint location it was opened from.I'm finding precious little in the forums to help me out, so if there is another way to get the same results with different actions, I'd be happy for that advice too.Thank you all for the time you put into these forums to help people like me!
Hi, in my form one radio button group available. so what i want is, if i select first radio button, another check box should automatically select. if radio button not select then checkbox should empty. pls give javascript to manage this work. i'm using adobe pro xi. thanks in advance. thanks..
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.