If, then, javascript calculation on pdf form

I have a form with a grid which lists credit cards transaction amounts, with a drop down box for "type of credit" (visa, mastercard, discover).  The bottom of the form has 3 different total lines; one for each of the credit card types.  I would like to know how I get the amounts entered on the grid above to be included onto the correct total line, depending on what type of credit card was chosen from the dropdown on that row.  Since I'm not versed in java script, I'm having difficulty figuring out how to accomplish this type of calculation

I would recommend that you post this question over in the Acrobat Forms area as the folks there can help you best.

Similar Messages

  • JavaScript issue in PDF Form

    I am wanting to create a script in a PDF form format with Adobe 8.0 (or 5.0 if necessary, what I want it to do is when I fill out a form box "name" on page 3 I have the same thing "name" is there a way for it to bring the information from the first box to the second without me retyping it? I will be using this form A LOT. I am working for a hospice center and have to fill out a ton of paperwork and some of it is very repetitive. Any help would be great, I know a little javascript and I think it can be done with it, any ideas?
    Nora

    If you are using Acrobat and the Form Tool, just use the same name for the field name.
    If you are using LiveCycle Designer, use the same name for the field name select "global" for the field's binding.

  • Runtime calculations in PDF forms

    Good day!
    My task is to make a PDF form of the quantity of the material on the factory with some runtime calculations. Just like these:
    MATNR | MAKTX | LGORT | LABST | MEINS
    100 | Material_1 | 0001 | 100 | KG
    100 | Material_1 | 0002 | 300 | KG
                     In general :  400
    200 | Material_2 | 0001 | 50  | KG
                     In general :  50
    300 | Material_3 | 0003 | 150 | KG
    I've made the layout to look exactly like this but i don't know how to make calculations. I think that the solution is to use FORMcalc but regretfully i haven't find it yet.
    Thank you!

    -solved-

  • New calculation in pdf form

    I've got a little pdf-form where you can enter the unit price and the order size. The form will calculate the allround price (Text1+text2...), taxes and so on.
    First the unit price is multiplied by order size, these will be add and finally I calculate the taxes.
    After this I change an unit price (typing error), but the calculated taxes remain the same.
    Is there any way to force the form to re-calculate?
    Thanks a lot
    Abe

    Make sure that the field calculation order is set correctly.
    George

  • How to do dynamic calculation on PDF Form

    Hi friends,
    I need to to create a invoice page using Adobe PDF dynamic Form.
    Business Requirement:-
    1. User will select predifined product, Quantity, Rate and Amount would be calculated. Tax would be calculated from the below data.
    2. I have a  tax table
        0      - 1000    2%
        1000 - 2000   5%
        3000 - 4000   7%
    Queries:-
    - how to write script to calculate Tax based on above tax table data?  How to ref. a table data?
    - how to write script keeping in mind about adding new percentage in future?
    Cheers,
    Victor

    The attached form will help you in understanding the dynamic calculations.
    Reading the table data with changes in the future..
    a) If your application is a standalone application, (means you distribute the .PDF file directly to the users instead of rendering the PDF based on request), then you may need to hard code the data inside the form itself. - In this case, if the table data changes, you need to change the PDF and re-distribute the form.
    b) If you are rendering the PDF on the fly based on the request, then you have the option of reading the data from the table (you need to do this in the parent application which is invoking the rendering process) and make it part of the input XML at the time of rendering. You need to write your code to read the XML and do the calculations for each request. - In this case, if the table data changes, PDF will get the latest information beacause the latest info is available in the input XML.
    Thanks
    Srini

  • Problem with JavaScript in my PDF Form buttons

    I am trying to have my user click on a button in my form on my website and e-mail the form data to me.
    I am using the following JavaScript with my form button:
    this.mailForm(false, "[email protected]", "", "", "Subject", "Message Body");
    Protected mode is off.
    When I use the above statement (whether the 1st parameter is set to true or false), nothing happens – no email gets sent and no mail dialog box appears. If I change from this.mailForm(...) to this.mailDoc(...), I get a mail dialog box but, as expected, it sends the blank form without the filled-in data due to low user privileges.
    How can I send the form data with this.mailForm(...)? (Note that I prefer to use this.mailForm(...) rather than mailto:(...) because this.mailForm(...) supposedly allows me to e-mail the form without user interaction.)
    -- Don

    Thanks for responding.  I have been using “Submit a form” in the Mouse up event.  I had that operation do a mailto: and it worked, but required user interaction on the part of the web page visitor.  I have successfully created an equivalent JavaScript including:
        var url = "mailto:[email protected]?subject=mySubject&body=MyMessage"; 
        this.submitForm(url, true);
    The above sent the FDF file successfully, but again, it required user interaction.
    Then I tried this JavaScript - as I mentioned in a previous post - after you said to use doc.submitForm():
        var url = "http://mydomain.com/submit_notice.php";
        doc.submitForm(url, false);
    The above script seemed to do nothing (with no error message). Shouldn't it bring up the PHP file in the web browser?
    I have that php file, submit_notice.php, created, but I have not written any PHP scripts to e-mail the FDF file.  I have never written a PHP script to take the posted FDF data and email it, but I have used the PHP mail() function and posted variables.
    As for what I want to happen on the client side after the submit takes place: I simply want the FDF file to go to an e-mail that I specify.  Additionally, I need it to happen without any client interaction on the part of the web page visitor.  I can expect that visitor to have Adobe reader, but no add-ons or protected mode requirement.
    Please give me an example that emails the FDF file without any user interaction.
    Thank you.
    -- Don

  • Question about using calculations in PDF form

    I am creating an order form with fields using simple calcuation math (price field x qty field = subtotal field). My question is, if the quantity fields in the order form are blank I would like the subtotal and total fields to remain blank as well. However it shows and prints as 0.00. Is there a way to change that?

    Use this code as the custom validation script for that field:
    if (event.value == 0) event.value = "";

  • Information about javascript in pdf forms

    Hello folks. Could anybody tell me where i can find information about application javascript language in pdf forms? I've visited adobe.com and found a lot of pdf articles but they are really useless. I want to find about object model of pdf form, about frequent used operators.

    Hi Konstantin,
    I think this could help you:
    LiveCycle Designer Scripting Basics http://www.adobe.com/devnet/livecycle/articles/lc_designer_scripting_basics/lc_designer_scripting_basics.pdf
    Adobe XML Form Object Model Reference: http://www.adobe.com/devnet/livecycle/articles/Adobe_XML_Form_Object_Model_Reference.pdf
    Michal

  • Converting a pdf form to pdf doc so it can't be altered.

    I have a pdf form that I use to complete test reports for the city.  I then need to send that completed form to the customer and city but I want to send it as a pdf document so it can't be altered.  How can I do this?  I use to be able to print to Create PDF but now it's not available so I have tried this Create PDF online but still can not get it to save as just a pdf doc.

    Hi Diego237,
    If I understand you correctly you have a fillable PDF form that you fill with some report information, then you send that PDF form to customers via email, but you don’t want them to be able to altering it.
    You may use Adobe Acrobat to set/change restrictions for your PDF document – to specify what your customers could do with the document. For that just execute the following steps:
    1. Open your already filled PDF form document in Acrobat
    2. Chose File> Properties, select Security tab in Document Properties dialog.
    3. Choose Password Security in Security Method popup menu – it opens “Password Security – Settings” dialog. In Permissions area Select check-box “Restrict editing and printing of the document.
    4. In “Printing Allowed” drop down menu specify allowed printing options
    5. In “Changes Allowed” drop down menu specify “None” or otherwise whatever you want your customers be able to do with your PDF form.
    6. You need to provide password (for you to remember so that only you will be able to change that document again when needed),
    7. You need to Save that document for your new restricted permissions to take effect.  Then close and reopen the document – and verify permissions in Security tab of the Document Properties dialog. And if that’s what you intended – you could email that PDF document to your customers
    Now if you don’t have Adobe Acrobat yet but only free Reader, you would need to download a free trial version of Acrobat XI  Pro from here.
    And if that solution is working for you, please check out Adobe Acrobat Plus pages:
    https://www.stage.acrobat.com/acrobatplus/en/home.html
    on how you could upgrade your CreatePDF subscription to Acrobat Plus subscription to allow you full right to download and use Acrobat XI Pro desktop application on your computer further on.
    Regards,
    Rufina
    Member of Adobe CreatePDF Team

  • Secure pdf form sent by email

    I created a self-signed digital ID for both signature end data encryption.
    Then I created a pdf form by using livecycle and put it on our website, and after users fill it in, they will click submit by email to submit the data.
    I tried to create a self-signed digital ID.- that also does data encryption. Then I did a test to fill the form, send by email. I suppose it has encrypted the attached PDF form, but I can open it just like regular form without encryption. How can I know if it is encrypted or not?
    Thanks

    This is my exact concern. I want to know that return email with xml data files are encrypted for confidentiality. Does anyone know how this is done?

  • Create HTML Form from PDF Form

    Does anyone know of a quick way to create an HTML Form from an existing PDF Form?
    Thanks everyone!
    mars

    From ID you can export to XHTML which is indeed consumed by DW but not via Acrobat...
    So, can I import a PDF form into ID?
    When I meant was - InDesign can export to XHTML
    Acrobat cannot
    Indeed, it would be great if forms could be created as ID objects and then exported to a PDF form but not yet (all fingers and toes crossed for CS5/CS6)
    Cheers,
    Jon

  • Javascript window on submitting PDF form

    Hi,
    I have a form designed in Livecycle ES3. When I go to submit the PDF form using Adobe Reader 8.0 to the specified email address I get the following javascript window:
    To:
    Subject:
    Attachment:
    From:
    Email Address:
    Full Name:
    Warning:Javascript Window
    When I select Send I then get another javascript window:
    Please indicate the option which best describes how you send mail:
    Desktop Email Application
    Internet Email
    When I click ok it works fine and attaches to an outlook email. However I don't want these windows to appear at all but for it just to send the pdf.
    Is there some setting I need to change when designing the form in Livecycle or a setting in Adobe Reader?
    Any help appreciated.
    Thanks,
    Deep.

    any ideas? still can't get rid of this window?

  • Can I create calculated fields using formscentral on a locally created, fillable PDF form?  If so, how?

    I am using Acrobat XI Pro to build a fillable PDF form that can be used by customer who have Adobe Reader installed.  I would like to create calculated fields, including the summation of two or more currency fields and the product of a currency and number field.  The procedure for creating these escapes me.  Does anyone have any insight?

    Hi Gilad,
    thankyou! - yes it seems though I was using the text tool when I had this problem: When I had created a few fields in the 'form edit' mode I then may later have added some normal 'comment' fields of text in the normal mode to highlight certain aspects on a form - I used the text tool thinking that was the right way in to add or edit text - I can now see I double click with the hand tool to still be able to access any text field I want to. Yay!
    Many thanks for your kind assistance - I shall try this method later on a new form I was trying to create and which was giving me grief.
    One last thing then: what is that default text field that can't be deleted actually for - why is it there? After all, a 'blank pdf' should surely be a truly blank pdf? Perhaps this is one for mighty Adobe....?
    Kind Regards,
    Pete

  • Script for calculations using checkboxes in PDF form

    I have 7 checkboxes, at least one must be checked, but the user may select all. Each one has a value of 800, therefore selecting all seven would give a total of (800 + 800 + 800 + 800 + 800 + 800 + 800). Selecting only two: (800 + 800), etc.
    However, the last checkbox is a 50% discount for students.
    I'd like the total to have this formula:
    (CheckBox1 + CheckBox2 + CheckBox3 + CheckBox4 + CheckBox5 + CheckBox6 + CheckBox7) = x
    If CheckBox8 is selected, then x/2.
    I've done (CheckBox1 + CheckBox2 + CheckBox3 + CheckBox4 + CheckBox5 + CheckBox6 + CheckBox7) / CheckBox8
    but in this way, I only get a value if the CheckBox8 discount is selected. Not everyone will be a student.
    Excel, Access, no problem, but I'm new to javascript and pdf forms. Any suggestions?
    Isabel

    Two things about Acrobat JavaScirpt and forms you should be aware of:
    1. Check boxes and radio boxes have a string value of "Off" when there is no selection is made for the field or a field within an exclusionary group of fields, fields with the same name but different export values.
    2. One can not divide by zero and expect a reasonable answer. You will get a string returned with a value of "NaN' (Not a Number), "Infinity", or "-Infinity". Those values maybe number types but the numeric field type can not display them and reports a format error. You can check this by setting the field format to 'None'.

  • Seeking Pdf form help - javascript formula to auto-populate fields based on data from other fields.

    Hi there, I am new to PDF form work, and am wondering if someone could help me with a javascript formula.
    I want to auto-populate the EXPIRYDATE field, as the same date as the entered AUTHORIZATIONDATE field, but 4 years later.
    So, I want to be able to enter 11/14/2014 in the AUTHORIZATIONDATE date, and have 11/14/2018 auto populate in the EXPIRYDATE field.
    Seems simple I know, but I've messed around quite a bit and can't seem to make it work. Is this possible??
    Any help would be very much appreciated!!

    And what have you done?
    This can only be done with custom JavaScript programing.
    The value of date type fields are text field and not numeric data. The first task is to convert the dates to a number on some type of number sequence that is a mapping to dates.
    Have you looked at the Acrobat JavaScript API Reference, the MDN JavaScript reference?
    I would use the Acrobat JavaScript util.scand to covert the date string to the number of milliseconds from January 1, 1970 midnight. and then use the getFullYear method of the date object for the year value and add 4 years to that value and then use the setFullYear method to set the year for the date object. Now you can use the util.printd method to format the date object as a date string with a specific format.
    // get the date value, format of date string and years to add;
    var cDate = "11/14/2014"; // date value;
    var cFormat = "mm/dd/yyyy"; // date format;
    var nYears = 4; // years to add;
    // convert date string to date object;
    var oDate = util.scand(cFormat, cDate);
    if(oDate == null) {
    app.alert("Error converting " + cDate + " using format " + cFormat, 0, 1);
    // add years to date object;
    oDate.setFullYear(oDate.getFullYear() + nYears);
    // display result;
    var cExpireyDate = util.printd(cFormat, oDate);
    app.alert("Authorization Date: " + cDate + "." +
    "\nExpire Date: " + cExpireyDate, 3, 0);

Maybe you are looking for

  • How to change the SID name in the server

    hi all, i installed oracle 10g R1 on windows 2003 server. i gave an sid and created a database. the database is new and there is no data in the db. now i want to change the SID name of the database. pls help me in doing this. regards, nagarjuna

  • New Page COmmand in Smartforms

    Hi, My requirement is as follows, Whenever the item number changes it has to generate a new page with the header Whenever an item overflows it should come in a new page without the header details. So for this I have two pages in my smartform. Page1 -

  • Updating Flash Player Does Not Reflect In Add-Ons Manager or Plug-In Check

    The add-ons Manager shows I have Flashplayer version 11.3.300.265. The Plug-ins Check shows there is an update, and I downloaded and installed Flash Player version 11.3.300.268. Six times! Each time, the installation shows as successful on the Adobe

  • Flash Player Audio Channel Problem

    Hi,I just signed up and  I couldn't post this in the normal flash player section because it was grayed out. The problem came with the new update I think, now whenever I'm watching youtube or another website that uses flash its sending audio out of al

  • TS3694 Error code 1015 on my old 3G

    Bought a 3G and reset it via the menu options on the phone in order to erase previous content and rest the phone itself. It crashed during this phase and got stuck in the grey screen with the Apple motif. I have since managed to get it back to the sc