『アドビコミュニティフォーラム』に質問/トピックを投稿する方法
Unlock the power of Acrobat SDK through our community.
新着順
Hello, I am working on a form where once one checkbox is clicked, I need it to automatically check another box. My issue is I need the checkbox that would automatically be checked to have the capability to be unchecked without unchecking the first checkbox. Is this do-able?
Hello everyone,Management wants me to create a form with two columns that can "interact" with one another. The first column is a code column using 'list' boxes with options 1, 2 ,3, O, and X. This column is titled "Code" and each box is titled "List Box 9" and the list continues to "List Box 21". The second column is just a comment column that is not required unless the option 'X' is selected in the first column. This column is titled "Repair Comments" and each text box is titled "24 Repair Comments 9" and the list goes on to "24 Repair Comments 21". Management wants the boxes in the "Repair Comments" column to be required if 'X' is selected in the list boxes under the "Code" column.For example:If "List Box 9" is blank or has codes 1, 2, 3, or O, then the text box "24 Repair Comments 9" should not be required to fill out. However, If "List Box 9" is changed to an 'X', then "24 Repair Comments 9" should turn into a required field.Is this possible? Would I enter this as a validation scri
Hi all,You helped me tremendously with this script earlier, but I found one error I made I have to halve the first field and use the mathfloor here before continuing operations. I thought it was an easy fix and may be, but I am missing it. This is the change I made.event.value = Math.floor(Number(this.getField("g1p1resources").valueAsString) * 0.5 * Number(this.getField("g1p1multiple1").valueAsString)); I moved the *.05 from the end to just after the first statement. Running it through the console it says it is right, but the calculation for example for 5*.5*2 comes up 5 when it should be returning 45 halved is 2.5 rounded down to 2 * 2 = 4I am really rusty on my javascript haven't used it in years and trying to get back in is proving to be a bear. Thank you for your help.
Hi all,I know I am missing something, but can't quite figure out what. I am just trying to round a field down using the math.floor command I am certain I have the syntax wrong somewhere. Here is the script the calculation is working perfectly, but it is always rounding up.event.value = ( this.getField("resourcesRow1").value * this.getField("g1p1multiple1").value )*.5;event.value = math.floor("g1p1resourcestotal");Thanks for any help.Regards,Larry
I have input a script for a field to fill in 3 others depending on the value entered in one. I keep getting an error saying syntax error ) is missing after condition 1 in line 2.Here is the script. I have tried placing a second ), but that is not working.I am missing sometthing, but can't figure it out.if (Player 1 Lvl.value=="1") { this.getField("Player 1 Multiple 1").value = "1"; this.getField("Player 1 Multiple 2").value = "2"); this.getField("Player 1 Multiple 3").value = "3");if (Player 1 Lvl.value=="2") { this.getField("Player 1 Multiple 1").value = "2"; this.getField("Player 1 Multiple 2").value = "3"); this.getField("Player 1 Multiple 3").value = "4");if (Player 1 Lvl.value=="3") { this.getField("Player 1 Multiple 1").value = "3"; this.getField("Player 1 Multiple 2").value = "4"); th
Hi All,I am creating a form in Adobe Acrobat Pro. I want to set a minimum number of words (50) in a text field named 'Business Description'I want also to make sure that before saving the form user either wrote 50+ words in that field or that filed has not been completed at all (0 words).Can I apply those restrictions using JavaSpript? Your help is very much appreciated.EMil
I have a form with multiple signature boxes. the form has a sequence, someone has to fill a specific text Boxes and sign and send the form to another person to fill the rest of the text Boxes and sign. I need a java script that when the first person sign, some Boxes enabled and some boxes disabled.
Hello -I am hoping someone might be able to tell me why the below does not work? Basically, I am trying to hide a button; using another button. From the research I have found, it seems the below should work...but it doesn't...nothing happens? 😞Anyone have any ideas as to what may be preventing the below from working:Button name: Attachthis.getField("Attach").display = display.hidden;Thanks in advance for your time
We are using Adobe Acrobat Pro 2017 at our offices. I have a user that wants to create a stamp with just their initials and current date and time. That's it. No other comments or words. I wish the built-in stamps that already have the date and time code built in would just let you use that as a template and customize your own stamp.Can anyone assist me with this?
(Acrobat XI Pro): This problem comes and goes with various Acrobat updates, and mutates to different symptoms, but essentially, Acrobat insists on embedding common fonts in documents, and then not giving any means to remove them, resulting in excessive document size. The problem fonts can be seen in document properties, and preflight, but are NOT shown in 'optimize pdf'. I have tried printing the document with all fonts on my system selected as 'never embed', and the 'rely on system fonts' check box in the print properties dialog checked or unchecked. Both of these worked at various Acrobat updates, but since the latest (11.0.18), NOTHING will remove these fonts (Arial is embedding i the document prompting this question, but different documents 'lose' different fonts)Does anybody know how to get rid of these things?
Hoping someone can help with this.I have a form with several rows of fields as follows (only showing row 1 below)..."Unit_1" (dropdown), "Unit_1_Fee" (textbox, currency), "Unit_1_Var" (textbox, numeric), "Unit_1_Actual_Fee" (textbox, currency).When a unit is selected in "Unit_1", the associated fee is shown in "Unit_1_Fee" which is a value retrieved from a Document JavaScript.If "Unit_1_Var" is empty, the value in "Unit_1_Fee" is also displayed in "Unit_1_Actual_Fee".If a "1" is entered into "Unit_1_Var", the value in "Unit_1_Actual_Fee" is "120" (an override value).The following script is attached to the "Unit_1_Actual_Fee" field to achieve this...if (this.getField("Unit_1").valueAsString!=this.getField("Unit_1").defaultValue) { var altValue = Number(this.getField("Unit_1_Var").value) * 120; event.value = altValue>0 ? altValue : (Number(this.getField("Unit_1_Fee").value);} else event.value = "";What I'm hoping to do is to modify this to use a checkbox instead of t
Greetings – I am looking for a way to delete files added to a form using the below script I obtained from a forum. Wish I could remember which forum so I could give proper kudos; as the below works perfectly allowing me to attach any type of file to the form.What I need now is a way to delete these files? Have been unable to locate anything on how to delete a file, attached in the manner below. Anyone have any ideas?Thanks in advance for your time. Any assistance will be greatly appreciated.Script to attach file(s) - (works great!):******into form actions Java Script********if (app.viewerVersion < 11) { import_pre_11();} else { import_11();}******into document java script; Import_File (create/add new)******// Initialize attachment numberattachment_num = 1; // Initial location of file attachment icon// The x value is incremented belowvar oFAP = {x_init: -72, x: -72, y: -72}; // Below lower-left corner of the pagefunction imp
I'm working with fillable form PDFs on Mac. I'm able to open the form and fill it all out as expected, but now I'm simply trying to "print to PDF" or save or whatever...just some way to turn this into a clean PDF with the data filled in and not the form fields still there.In Windows, I simply go to File -> Print, I choose PDF from the printers, save it, and it gives me exactly what I need, which I can then deliver to whoever I'm sending it to.On Mac this is apparently impossible..?? I used to be able to do it in the past, but now the info I'm getting from Adobe live chat is that this is simply not compatible on Mac and cannot be done. This essentially renders Adobe forms useless in Mac in my opinion, and frankly I'm having a hard time believing there isn't a way to do what I'm trying to do.On Mac, when I go to File -> Print, Adobe PDF doesn't even show up in the printer list. The only way to get to to the option is to click on "Printer" settings, which ope
I have 3 text boxes all numerical values only, EXPRESS TOTAL, ECONOMY TOTAL & SP SVC, I would like at least one of these text boxes to be completed with a value greater than 0. If one box has information then the other 2 textboxes are not required to be completedI started with the below as a custom calculation script for each of the text boxes but am unsure if i am doing this correctlyAlso should the form when opened have all these text boxes as required ticked at source and only when one of these 3 text boxes is completed with a value greater than 0 the required state for the other 2 textboxes will be removedvar aF = ["ECONOMY TOTAL", "SP SVC"]; var sf = this.getField("EXPRESS TOTAL"); for (var i = 0; i < aF.length; i++) { var v = this.getField(aF).value; if (v !== "") { this.getField("last 4 digits").required break; &n
i am using the acrobat SDK in c# and i wanna get the indexes of the pages that the user selected to be printed
Can someone tell me an easy, in general, way to find the stamp folder on a Windows based PC? On the Mac it's very easy but I don't know how to find the folder on a PC. I remember seeing something regarding that very thing but I cannot find it again. I know, I should have bookmarked it.
I have some validation code (below) that validates fields before a user can submit the form. The code works great, with one exception; Each time it catches one of the below, the code returns to the form and designated field, as should; but also clears all fields on the the entire form?Anyone have any ideas as to why, upon returning to the form and designated field, the form clears all data from all fields; almost as if it is resetting the form?Here is what I am working with?if (this.getField("Date of Loss").valueAsString==""){app.alert("You must enter the Accident Date in the Date of Loss field.");getField("Date of Loss").setFocus();} else if (this.getField("Time of Loss").valueAsString=="") {app.alert("You must enter the Time the accident occurred in the Time of Loss field.");getField("Time of Loss").setFocus();}else if (this.getField("Employee Drivers Name").valueAsString=="") {app.alert("You must enter the Employee Drivers Name in the Employee Drivers Name field.");getField("Employe
This is about Adobe Reader DC run from WIndows computer.A pdf is on the user desktop, and user open it with his Adobe Reader DCIn the File Print dialog, there is as "Save Toner" checkbox.When it is selected, the pdf document events WillSave and DidSave are triggeredThis never happens when it is not selectedMoreover, it seems that this causes some reloading because the global var are reset to the original values.Steps to reproduce the problemAdd a javascript document with the codevar testvar = 0;Add a print button with the codetestvar = 1;console.println("in print button: "+testvar.toString());this.print(true); //show the ui print dialogconsole.println("out print button: "+testvar.toString());Add a WillSave event with the codeconsole.println("unexpected call to will save: "+testvar.toString())Add a DidSave event with the codeconsole.println("unexpected call to did save: "+testvar.toString())Add a WIllPrint event with the codeconsole.println("in will print: "+testvar.toString())Add
I've created a few stamps using Acrobat Pro 10. What I'd like to know is, is it possible to use the same stamps I've created on my Mac to use them on a PC. At this point I don't know what version of Acrobat will be on the PC. Will I have to create the stamp all over again on the PC? Thanks.
var aF = ["ECONOMY TOTAL", "SP SVC"]; var sf = this.getField("EXPRESS TOTAL");for (var i = 0; i < aF.length; i++) { var v = this.getField(aF).value; if (v !== "") { this.getField("last 4 digits").required break; }}I have 3 text boxes all numerical values only, EXPRESS TOTAL, ECONOMY TOTAL & SP SVC, I would like at least one of these text boxes to be completed with a value greater than 0. If one box has information then the other 2 textboxes are not required to be completedI started with the above as a custom calculation script for each of the text boxes but am unsure if i am doing this correctlyAlso should the form when opened have these text boxes as required ticked at source and only when one of these 3 text boxes is completed with a value greater than 0 the required state for the other 2 textboxes will be removed
Hi, How to find out that how many colors used in pdf file. And also need to find out spot colors. How to find out in PDF file?
Hello guys, I am really rookie with Javascript but I'd like to know what is wrong with this code? I get alerted but not exactly on the numbers. I have two TOTAL values that I compare and I want to be alerted if they're the same or different. Can anyone take a look and perfect this code, will be appreciated.var V1=Number(this.getField("A").value);var V2=Number(this.getField("B").value);if(V1==V2) {app.alert("EQUAL");}else if (V1 >> V2){app.alert("First value is bigger");}else {app.alert("First value is smaller");}
this.getField("AMULAT MECHES").display = (this.getField("Group19").valueAsString == "Choice1") ? display.visible : display.hidden;
I've created a form in Adobe Acrobat Pro DC which will require a user to fill in the following fields: name, business name, phone number, email address, verify email address, & account #. All these fields must be filled out and what's entered must be validated. In the Validate tab for each field I see that I can enter a custom validation script. I have no knowledge of Javascript.How can I find the correct custom validation scripts to use for each field?Thanks.
I have a form and on that form I have a custom button to spawn a new page -var template = this.getTemplate("1");template.spawn(this.numPages, true, false);this.pageNum = this.numPages-1;When I add a few pages everything is works properly, fields are renamed etc. Once I delete a page say page 4 of 5 pages the page deletes fine. Page is deleted via a custom button that is on the spawned page -var response = app.alert("Are you sure you want to DELETE page" + (this.pageNum+1) + " ?", 2, 2);if(nResponse == 4) { this.deletePages(this.pageNum,this.pageNum); this.pageNum = 0;}Now when I spawn a new page after deleting a page it appears to duplicate the last page I spawned. It does not rename the fields so it populates the fields with data from the last spawned page, any ideas?
Remix with Firefly Community Gallery
Thousands of free creations to fall in love with and remix in Firefly.
すでにアカウントをお持ちですか?ログイン
アカウントをお持ちではありませんか? アカウントを作成
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.