Questions
Recently active
i am trying to create a form to that has a text field change color to either green or red depending on the calculation of values from two other text boxes. at first i had consecutive If Else statements and the calculation would work but the color change would seem to be delayed. . say the range of values to turn the fill color green is 19 - 26, if i type in 19 the color wont changeto green. but when i type in 20 it does change green and if i go down to 18 it stays green. is this issue because i had consecutive If Else statements? var f = event.value; var wpds = this.getField("wpds1").value; var dia = this.getField("dia1").value;var pass = this.getField("pass1").value;var Distance = this.getField("Distance").value ; var Time = this.getField("Time").value ;var Travel_Speed = Distance / Time * 60;if (Distance > 0 && Time > 0){this.getField("travelSpeed").value = Travel_Speed ;}else { this.getField("travelSpeed").value = ""}if (wpds == "UB36") {&
I am trying to make a field change its fill color based on its expiration date. I have tried to figure out a way to do it using the action builder to no avail.Example:User enters expiration date in the date fieldif the date is greater than 90 days out the fill color stays whiteif the date is greater than 60 days out but less than 90 days out it turns greenif the date is greater than 30 days out but less than 60 days out it turns yellowif the date is less than 30 days out it turns redI was easily able to make this work in excel using =XX>TODAY() + 60 and a quick format change but livecycle is proving to be much more difficulty. Obviously I could stick with excel but PDF is so much cleaner IMO.Any help would be greatly appreciated.
Greetings. I have looked all over for this solution and am hitting a wall.I have two dropdown lists on my Adobe Acrobat DC form. Here is the pseudocode I am trying to create into a javascript action:If (dropdownList1 value == "department1") && (dropdownList2 value == "building1") then textBox value == "Mr. Church"elsetextBox value == " "Anyone had any luck getting something like this working?Thanks.[Moderator moved from non-technical forum Lounge to JavaScript .]Nancy
We have multiple PDF files in Lotus Notes that needs to be migrated to SharePoint 2013, each PDF in lotus notes has link reference to other PDF.But as we migrate to SharePoint these link reference needs to be updated to point to new location, we are looking for some code solution to read and update these links.Any server side or client side code will work, but we are not willing to use any third party DLLs.Ankit
Hi,I am creating a mental health pdf form survey with very basic yes/no radio button options (See image below). Each page has one question. I am trying to create some simple code that transitions to the next page if a user selects one radio button (Q1 choice 1), but skip to the 11th page if they select the other (Q1 choice 2). I want this to happen when they click the "next" button.I assume I add the code to the "next" button... Something like "if radio button Q1 choice 1 = true, go to next page, else go to 11th page" (excuse my lack of coding knowledge).How would I go about this?Thanks!
Is there a Javascript available that automatically renames a PDF based on the content? Some fields in the PDF should be reflected in the PDF name.
I'm using the javascript map object and its not working as expected. I searched the forum for any issues with the map object, but found nothing. The relevant javascript documentation is here. I created a form with javascript at the Page Level. The javascript uses an iterable literal for initialization:this.myMapIterable = [ [ "002", { "code": "002", "rate": 0.0165 } ], ];this.myMap = new Map(this.myMapIterable);I shortened myMapIterable to one entry, but in the original there are over 50 entries. The length of the iterable does not present itself as an issue. Given the above code one would expect that getting an entry, using the following code, would produce the associated object:this.myMap.get("002");The above, should according to the Javascript documentation, produce the object:{ "code": "002", "rate": 0.0165 }Unfortunately, it doesn't. What I get is undefined!? I been battling this issue for the past day. Playing around in the Javascript debugger, I have found that the Acrobat imple
I tried the instructions below but it does not work:In Acrobat:The script you create to display the current date when the document is opened is a document level script.To create an automatic date field:1. Select Tools > Forms >. Edit > Add New Field > Text Field and create a text field. (For more infor-mation, see the section on Creating Form Fields in the Acrobat online help.) Select All Properties > General tab and name the field Today.2. Select the Format tab, chooses Date for the format category, and chooses a month, day, and year format option (for example, “mmm d, yyyy”). On the General tab, make sure the field is read-only because it will be a calculated field, and click Close.3. To create a document level script that is executed each time the document is opened, choose View > Tools > Document Processing > JavaScript > Document JavaScripts. Name the script Today, and click Add.4. Delete the automatically generated text, defining a Today function, that
I've created a PDF with a list of 'results'. Each have a Title, Link, Date and Description.For some Links, the converted hyperlink in Acrobat Pro / Reader CC is incorrectly appending part of the second line, the Day.This only happens in Acrobat apps, not Chrome PDF preview or Edge PDF preview.here is a link to the dochttps://drive.google.com/a/bitvore.com/file/d/0B-_yL1qkqD-_a2oyMWwtLU9iWjA/view?usp=sharingIt is looking like a bug in Acrobat. Does anyone know why this might be happening? !
I am working on a vacation request form that has a field for start time and end time in h:mm tt format. I have a script that is working for calculating the difference in those fields, however, I need this have an exception and I am not sure what to add/change.If an employee request 8:00 am to 12:00 pm the script works fine, however, if they request 8:00 am to 5:00 pm it fails because it doesn't take the hour lunch period into consideration.Please advise.// get the values of the fieldsvar sStart = this.getField("Start TimeRow1").value;var sEnd = this.getField("End TimeRow1").value;// clear field as a default actionevent.value = "";// compute only if we have valuesif(sStart != "" && sEnd != "") {// add a formatted date value to the time field valuessStart = "1-Jan-1970 " + sStart;sEnd = "1-Jan-1970 " + sEnd;// convert the date time strings to date objectvar oStart = util.scand("d-mmm-yyyy h:MM tt", sStart);var oEnd = util.scand("d-mmm-yyyy h:MM tt", sEnd);// convert date ob
Hi,I'm new to Adobe Javascript.We use the Extract and Print commands to create new pdf files which we send to clients. One of the problems is that we are not able to print more than 32 pages using the menu print command. We need to print up to 100 pages. We are using Adobe Acrobat Pro DC, version 19.0.10.20069.49826.So, what we do is perform two print commands to pdf files, then use Adobe Combine to merge the two files together.We want to avoid having to print multiple files and then stapling them together. We are happy just using the print command to one file.Any suggestions?Rico
Hi! I am trying to pull form data from a PDF document and place it in an email using app.mailMsg - I have a button placed on the page where the data will come from with a mouseup trigger. I've cleaned up the data and email structure that I want to use a few times so I'm not sure if there is an error in my code/syntax (I'll paste below) or it is something that I am completely oblivious to. Any help is greatly appreciated! Thank you! var cMyMsg = "DOEE Notification\n\n"cMyMsg += "Client Name: " + this.getField("custName").value + "\n";cMyMsg += "Date Inspected: " + this.getField("inspectionDate").value + "\n";cMyMsg += "Address: \n";cMyMsg += "Structure Type: " + this.getField("structureType").value + "\n";cMyMsg += "Year Built: " + this.getField("yearBuilt").value + "\n";cMyMsg += "Owner: " + this.getField("buildingOwner").value + "\n";cMyMsg += "Building Structure Consists of:\n";cMyMsg += " *Framing: " + this.getField("typeStudFraming").value + "\n"
Liebe Leser,wo bitte finde ich die aktuellen DDE-Kommandos für Adobe Acrobat?
Created pdf from InDesign and imported graphics and text has hyperlinks. These are interactive in the pdf BUT do not show up as links so I can edit.
I am looking for information on how to mirror text in Acrobat XI Pro. I can mirror an image but not text. I can also flip text horizontally and vertically but I cannot get the TEXT to mirror. Is that still an option in Acrobat XI. I need this for our prepress department. We plate the text on the left and then mirror it on the right so our press can print both sides at the same time. I have had to resort to using an old copy of Acrobat 8 on an old machine and then copying that pdf to the machine I am using now in order to accomplish this task. I have been looking for an answer for a while and can only find information on mirroring an object or image. I hope someone can help.
Hi,I'm trying to setup a button to turn off 9 layers on an interactive pdf form.8 out of 9 of the layers turn off no problem but the 1 layer remains turned on. Really not sure why this is happening. Double checked obvious things like layer names but to no avail. The WR1 layer will not turn off when I click the reset button.Could anyone please help me with this 'simple' task as I am not particularly advanced with Javascript.PDF form attached here https://we.tl/t-gS6R4unxWlThanks in advance.var layer = this.getOCGs();for(var i=0; i<layer.length; i++){if(event.target.value=="Yes"){if(layer.name=="WR1"){layer.state=false};}{if(layer.name=="CL1"){layer.state=false};}{if(layer.name=="NC1"){layer.state=false};}{if(layer.name=="WR2"){layer.state=false};}{if(layer.name=="CL2"){layer.state=false};}{if(layer.name=="NC2"){layer.state=false};}{if(layer.name=="WR3"){layer.state=false};}{if(layer.name=="CL3"){layer.state=false};}{if(layer.name=="NC3"){layer.state=false};}}Message was edited by: Ro
Ok so I have a situation where I have Check boxes and text boxes that are related and need to populate together to a single text box BUT I have another set of check boxes and text boxes that are related that ALSO need to populate together to the SAME single text box mentioned previously. So here are the separate java scripts for each set of data that I want to put into the same single text box. How do I join the scripts together? or is it possible?Script 1:var values = []; for (var i=280; i<=281; i++) { var fname = "CheckBox "+i; var f = this.getField(fname); if (f==null) { console.println("Error! Can't find: " + fname); continue; } if (f.valueAsString!="Off") values.push(f.valueAsString); }if (this.getField("SLS EO").valueAsString!="") values.push("SLS EO: " + this.getField("SLS EO").valueAsString)
When populating a "list_box" from an already (case insensitive) sorted json object, the results display in the list box as being sorted with case sensitivity in mind. Does Acrobat apply its own (case sensitive) sorting logic to this/all element types?
I am creating a fillable form for our employees to request vacation time off. I have pieced together calculations scripts from various forums but can not get the result I want. Say an employee wants to take 01/04/19 off. They would enter a start date/time of 01/04/19 8:00 am and end date/time of 01/04/19 5:00 pm. I want the form to calculate the difference in hours. Now the trick is that if they take more than 4 hours (leave after 12 noon) the deduction needs to deduct an hour from the result, to account for the lunch hour so that employee is only charged 8 hours of vacation rather than 9. Here is the script I have pieced together, please advise:function Date2Num(cFormat, cString) {// convert cString with cFormat to number of minutes from Epoch date// convert to date time objectvar oDate = util.scand(cFormat, cString);// convert date time object to minutesreturn Math.floor(oDate.getTime() / (1000 * 60));} // end Date2Num function// format for input date &a
Generate a pdf using acrobat sdk javascript which does the following things: - It should contain a form with two input fields alpha and beta. - The form has a submit button. - I want to **submit** this form (click the submit button) **on document load** (trigger of the button) of the pdf **without** any prompts or user interaction. - This should submit the form data to a remote url.The biggest challenge I am facing is:I am unable to find a way to click a button on load of the document without any user interactionAction: Click a button(Can't find the button in the doc let's say using button id or button name)Trigger: On document loadAny help/ideas are appreciated, thanks!
Can anyone help me?Thanks.
Everytime colleagues (who didn't make the PDF) want to insert a picture, it changes sideways. I made a button using JavaScript:event.target.buttonImportIcon();They need to use pictures received by email. What can I change in the settings (or what do I tell my colleagues) to make the pictures stand up straight?Thank you!
A Java Script Checkbox that makes a field visible or hidden based on the condition is not functioning properly. When first opening the form, the box does nothing. If I click on "Prepare Form" tool and immediately close, the button works as it should. If Adobe is closed and the form is reopened, the checkbox stops working again.var nHide = event.target.isBoxChecked(0)?display.visible:display.hidden; this.getField("Flex Line Type").display = nHide;
I am trying to auto populate pdf forms from excel (like mailmerge in word). I have multiple rows in excel and when I import data from the excel sheet, i would like each row to be created as a separate form in Adobe. I consulted with Adobe support and googled. It sounded like I needed a javascript and a custom action. Could someone help me with the script and guidnace on how to implement this in Adobe?
Already have an account? Login
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.