Unlock the power of Acrobat SDK through our community.
Recently active
Please help with javscript in text field custom calculation field in Adobe Acrobat Pro DC fillable form.I have a NO and YES checkbox, with a TextField that will be NULL or have a text value.I want a check in the checkbox NO, if the text field is NULLI want a check in the checkbox YES, if the text field is NOT NULL Thanks in Advance! I saw this script on a user board below, but receive a syntax error at line 7, but don't know how to fix.if((String(event.value) == "") || (event.value == "")){this.getField("LB8No").value = "Off";this.getField("LB8Yes").value = "Off";}else if(event.value <> ""){this.getField("LB8No").value = "Off";this.getField("LB8Yes").value = "On";}
Hi, I made my first form and everything is working good. That was my first time creating a form and my first try with JS. I know thatmy calculations are porbably not optimal, but i'd like to figure out something without starting all over or make dramatic changes to my form. I'd like to know if there is a way for my calculations to be faster. There is a little delay when choosing an item in many fields but specifically in those fields :Type de collageProduitI can see that the calculations are runing. It could be anoying for the customer to wait everytime he choose an item.If someone has a clue for me it would be appreciated.I am working on Adobe Acrobat Pro DC.My form is in french. Here is the link to my form :https://documentcloud.adobe.com/link/review?uri=urn:aaid:scds:US:2c98e0b3-8af5-4701-972d-85991c54ca48Thanks, Kassandra
I have 4 radio buttons with a button style as a checkGroup name Shippingradio button choicesNon-Emergency Parts Order1Standard Overnight1Priority Overnight12nd Day Air1 What I would like to do is this:If the radio button selected is "Non-Emergency Parts Order1"then a field value of "EmerText" will be nullif it is any of the other 3 then "EmerText" will have a value of 'Rush" I will then put the "Emertext" on the sujext line as followsvar subjectLine = EmerText + "D"+this.getField("District Office #").valueAsString + " " +this.getField("Customer name").valueAsString + " SR " + this.getField("Original SR #").valueAsString; Following is the code I have. Issue is that it is not null when I chose "Non-Emergency Parts Order1"Please helpvar EmerText = this.getField("shipping");if(event.target.value=="Non-Emergency Parts Order1") {EmerText="";} else {EmerText="!!Rush ";} thanks
Hi,I’m writing a script for a dialog box including a dropdown list.Items of the list are depending on some variables, so I build a script line like that (here for 5 variables):var theList="dialogBox.insertEntryInList({\"LCou\":{"+var1+": -1}});dialogBox.insertEntryInList({\"LCou\":{"+var2+": -1,"+var3+": -1,"+var4+": -1,"+var5+": -1}});";then, in the dialog box building, I recall this string:eval(theList);That works fine as long as there is no space in the text of each variable, but that doesn’t work anymore as soon as there is a space.I tried to replace this character by the Unicode character, the result is the same.At the moment, my solution is to replace each space by an underscore…Does anyone get an idea to solve that? I would prefer display a space when needed.Thanks in advance.
Dear AllWe are creating tagged pdf from InDesign file. We are doing the following activities1. Set alternate text for images in InDesign file2. Create pdf using Interactive tagged pdf option from inDesignwhen showing the image page, it show yellow box with alternate text. I have attached screenshot for your better understanding Our customer statement is highlighted below:"The publisher is finding that when they hover over most of the pages, the alt-text pops up in a yellow box. Is there a setting that can change to have that not happen? Some of the text boxes are huge and would be very distracting for the reader.""Is it Adobe Feature?"Please advice that how to disable the yellow pop box. But alt text should be present in the pdf without pop up message. RegardsJayesh
as picture below when a PDF published I can read the words, but when I insert another PDF file the letters turn to boxes.
Hey Adobe Community, I'm trying to send a fillable form's contents to a Webhook in JSON format through button click. I tried the direct send at first but the webhook does not support the content type (presumably the entire pdf) so i'm trying to parse the form fields in JavaScript and send that way. How can I access the form fields in the JavaScript window? Or, is there a better way to accomplish what I'm trying to do? TIA
I have a form that needs several required fields. However, when a certain checkbox is checked,some of the fields are no longer necessary and need to become "not required" anymore.Is there a way to do this? I'm not sure if it's even possible. If it is, it may require a java script.I'm currently using Adobe Acrobat 8 Professional version 8.0.0 on Mac OS 10.5.8I also have access to Adobe LiveCycle Designer ES4 on Windows 7
I am trying to apply some JavaScript via the Acrobat DC Action Wizard using the Execute JavaScript tool to automatically insert the filename of the PDF into the document title field (without the ".pdf"). I found a chunk of script and pasted it in, but I get the following error: SyntaxError: illegal character3: at line 4 The full code: /* Put script title here */ \r\n//Begin script\r\n\r\nvar strFilename = "";\r\nvar strChar;\r\nvar i = this.path.length;\r\n\r\ndo {\r\nstrChar = this.path.substr\(i-1,1\)\r\n//console.println\(strChar\);\r\nstrFilename = strChar + strFilename;\r\ni--;\r\n}\r\nwhile \(strChar != "/"\)\r\nstrFilename = strFilename.substring\(1,strFilename.length-4\);\r\n\r\nthis.title = strFilename;\r\n\r\n//End script\r\n). I don't know enough coding to understand where the illegal character is.
Hello everyone,With a lot of effort and patience from George_Johnson I wrote the script which can be seen in the first picture.Now I would like, if this is possible, to change the title of the window (see picture 2). At the same time I would like to ask if I can replace the info sign (red circle) with a jpg picture of mine (not me:-).Thank you in advance for any help.Nikolaos.
Is there a way in acrobat to create a button so that users may automatically add a Rich Media Button to their PDFs? I've heard of using the Action Wizard, but I can't seem to do what I want. The repetitive task that people keep doing is: 1. Adding a Rich Media Button to the bottom of a page2. Labeling it as Table of Contents and then changing other defaults for it to be black outline, clear fill, and changing the default font. 3. Having the button action be page view and then the first page. 4. Duplicating this button across every page.
Hello,If I have a document which pages are indexed and I add 2 DidSig signature on an indexed page, I get a 'Annotation Modified' on the Signature panel (left side):The signature was newly added, no other change. Is this normal, is there a way around it?Thanks~Bastian
I have a multi-page form that requires the user's name in numerous blanks. I have named all such fields the same (“Name”) so that when the user fills in the first field all the others are also filled in. However, there is one such blank down in the pack where the user might very occasionally want to leave the field blank or type in different information. I am new to this, but I have created a button the user can hit and make the one selected field go blank, allowing the user to then either leave it blank or type in new information, without effecting the other fields. To do this I have cobbled together the following code: I changed name of the field to be made changeable from “Name” to “Name1”I created a field named “Hidden” that has a display of “Hidden”I put the following JavaScript in the calculate tab of “Name1” if (this.getField("Hidden").value.length== 0)event.value = this.getField("Name").valueAsString 4. In the acti
Hi, I need help.I have document level script that populates fields depending on dropdown field items, that part is working fine.What I need is one of the fields is called "Weight" it is populated with numbers but lets say I have another dropdown that will populate same field butthis time I want value to add up to previous value. How would I do that?
Hello, I have something that may be simple to most of you but difficult for me. That being said, please forgive my ignorance and thank you in advance for your valuable help! I have a form where lets say there are 3 text fields with names. Let's call them: "name1, name2, name3" and in those 3 text fields you can add a name. Let's say: "John, Jamie, Bob" (name1 = John) (name2 = Jamie) (name3 = Bob). Now let's say I have a check box next to each text field (cb1, cb2, cb3 - checkbox1, 2, 3). So now let's say I have "textbox main" and let's say I click a value of "off and on" for each checkbox. If I default cb1 for "John" or "name1" then it will appear on "textbox main". If i click on "cb2" or in this case "Jamie" or "name2" then it will appear on "textbox main". Finally if i click on cb3 or checkbox 3 for "Bob" or "name3" then again, it will appear on "textbox main". Does that make sense? Thank you for your time and help and hopefully someone out there can help!
I have 1000's of PDF that all need to have their headers added and modified to show the following: "Filename" / "Page Number" Thus far I have managed to use the Action Wizard in Acrobat DC to get all the headers in the PDF's to show: xx (Placeholder text) / 1 (using the page number function in headers & footers) Is there a way to replace the "xx" (placeholder text) with the PDF filename (excl. the ".pdf") in the header using JavaScript? And can this be done in a way to automate it for all the PDF's selected?
I am trying to format a timesheet I have created for multiple departments in our office. I am wanting: 1. Where the dates autofill when they select the period end date in the "WeekEndingDate" box (where the week ending date is a Sunday).2. Auto calculate time to convert into quarter hours. I essentially want it to calculate like:(MONDAYOUTLUNCH - MONDAYIN) + (MONDAYOUT-MONDAYINLUNCH) + "WorkFrom Home Hours" = "MONDAYTotal Daily" The employee would separate out their own time in the boxes named "MONDAYTotal Daily GL Hours" and "MONDAYTotal Daily Job Cost Hours"I am not savvy with java scripts and the simple notations are not working.
Hello all, thanks for taking the time to read this. Not sure if this is the most appropriate forum. I use notecards to study that I type in word and save as pdfs. They are all laid out the same: the odd numbered pages are the front and the next even page is the back. Is there a way to randomize a pdf document so that I can shuffle the deck, so to speak, such that it is always odd then odd+1?If you are interested, I can send you a sample pdf of my notecards, I must have close to 10,000 of them from medical school through residency, but the lack of being able to shuffle them really does hinder studying a bit. I would definitely be willing barter for your help. Message me back and we can exchange emails. Thanks,-jason
Hi friends, Getting desperate. Little java experience here. Any help would be appreciated.Creating a form w/ Yes/No radio buttons that show/hide a group of fields (section1) based on response.I can get it to work fine using for the first set (radio1) using either of the below for YES buttons (and display.hidden for NO)this.getField("section1").display = display.visible; or, if (event.target.value != "Off") {// box is checkedthis.getField("section1").display = display.visible ;} The problem is happening when I add a second group (radio2) to display/hide the next group of fields (section2). The debugger appears with the below... The form needs to assign 'section1' field group to 'radio1' button setthen 'section2' field group to 'radio2' button setand i can't figure it out. Please help :-0
Good Day, I have the following case, I wonder if someone have an idea how to achive it .... I need certain user(s) to view a PDF file.I need to the Admin user only to open and print the file I have around 100 students, I need to have the studen name appear on the footer when priting the file is that possile ?
I select an image for a button field. I want that image to be copied to another button field automatically. Another button is read only. Any scirp for automatic copy I am using Adobe DC Prof
Hello, I would like to change x and y text position using javascript.Clicking on a button, I would like to set x/y pos of differents text elements presents on my PDF.Do you have a way to do it, I can't find any solution.Thanks!!
I am having trouble with my script. I can get it to change to white in the form field when I enter text as I wanted, but I can't get it to change back to transparent if no text is there or deleted. I think I need an if/then statement but I can't seem to get it worded correctly. Any help would be greatly appreciated.Here is what I have so far, which works if I put it in "custom", or o"n focus":// custom keystroke action;FillHighlight(event.target.name, color.white);Thank you!
I want to take the requested date of a form and auto fill boxes 6, 5, 4, 3, 2, 1 month prior to that date. Is this possible? I have tried a few other date formula's and they are not working. I want the requested date to be mm/dd/yy format and the boxes to fill in a mmm-yy format.
I need a little help here. I have a form with many fields. Client will use fractions (ex. 30 1/4) to enter dimensions in some fields (such as width).I would like to add and AppAlert when one of this field is more than 30. Since I have no specific format on these fields, they appear as text. I can't do a math validation on a text.Is there any way to create an AppAlert by converting the amount in the specific fields or simply add a particular formating on these ? I am using Acrobat DC Ppro.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.