How to encode a calculation from a field value, and a check box?

How to make a field to calculate a commission based on another field (we'll call it "Total amount" for this example) and multiply % according to a box.  I have 3 different series that are check boxes. Depending on whether one chooses a customer, "Total amount" would be multiplied by 8%, 3% or 0% to get our total commission

Good point George.

AdobNewbee, modify the script to be:

Set the text field's custom calculation script

var v = this.getField("Rate").value;
var t = this.getField("Total_Amount").value;
{if(v!=="OFF")}
Event.Value = v * t/100;
}
on the other
Event.Value = "";

Tags: Acrobat

Similar Questions

  • How does one copy text from a text document and spent in photoshop?

    How does one copy text from a text document and spent in photoshop?

    Say I have a basic document open with some a few paragrphs text

    in it. I don't know how to copy it, but how I paste in Photoshop?

    I think if there is more than one line of text, then it would be best to drag a text box, place the cursor inside the text box and paste it (Ctrl or Cmd-v)

    Or if yo want only the text (paragraph) to adapt to irregular shape, then draw this shape with the tool pen > select the text tool and click inside the shape you produced with the pen tool, and paste.

  • How I can scan the registry valuHi, how I can scan the Windows 7 registry value and how do I come to know if the registry value is same as it has been installed previously?

    Hello

    How can I scan the Windows 7 registry value and how do I come to know if the registry value is same as it has been installed previously?

    Hello
     
    The Windows registry is a vast and vital part of the computer, which continues to evolve being modified or deleted or new entries are created all the time.
     
    Case where the registry keys of change.
     
    At startup
     
    So that updates
     
    While making customization or custom settings in windows
     
    While to install the software
    Virus... etc.
     
     
    Each click Open and save is related to the registry.
     
    This is something very tedous to verify the integrity of a registry of windows with all of the above modifications being carried out.
     
    You can back up the registry of the computer after you install Windows new and update with all Windows updates and the custom software, into a registry backup or create a system image / restore point.
     
    Please visit these links for more information.

    Windows registry Description of the audit of the Windows Registry tool (Scanreg.exe) How do I add, edit or delete subkeys in registry and values by using a registration entries (.reg) file Hope this information helps

     
     
     
  • How can I get text from several fields on a layer, copy a field on another layer?

    A little help please, as he did for years I did any coding of any kind.

    So, I have a document of 4 pages with different types of fields.  I have a document script that gets "TodaysDate" which works perfectly and some other scripts as well.

    So what I try to do is to find a work around for the following:

    I have 3 fields - NAME, first NAME and date of birth.

    Info.jpg

    And I want to what is typed in these fields to fill in 1 field.  And according to this tutorial (http://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript) it is not really possible.  At least, I think that's what he said.

    However, I hope that maybe I could have a button to send at the end of this document when you click Copy the text of these 3 areas (that I would on 1 layer) in 1 field on a 2nd layer.  Is it still possible?

    I also want to make the document print, Save (by using the text in the field on the 2nd layer as file name), Email (using the text in the field of the 2nd layer as the subject line) and export to a specific Excel spreadsheet.

    I'm not much I do?

    I'm using Acrobat 9 Pro on a Windows PC, but also have access to Acrobat 8 Professional.  And I want to run the form in Acrobat Reader X.

    So far, I have 3 fields in 1 on another layer:

    function buttonClick() {}

    if(ButtonClick==false)

    {

    Event.Value = This.getField ("Surname"+"-"+"FirstName"+"-" + "DOB") .valueAsString;

    }

    }

    But I don't know how to call the event.value 1 layer to another, or if none of that code above would even work at all.

    I have a script that I works perfectly for registration and Email function:

    Using the function "doc.submitForm ()".

    It is the return e-mail form. Its hard-coded

    to make the shape always comes back to the same address

    Change address on your form

    var cToAddr = " " [email protected] "; "

    First of all, download the customer email CC

    var cCCAddr = this.getField("ClientEmail").value;

    Now get the email recipient if it is filled

    var cBenAddr = this.getField("BennyEmail").value;

    If (cBenAddr! = "") cCCAddr += ';' + cBenAddr;

    Set text object and the body of the e-mail message

    var cSubLine = 'Form X-1 returned to customer'; var cbody = "thank you for submitting your form. \n' + 'save the attachment of e-mail for your own records;

    * Send the form data as an attachment of XML on an e-mail

    Construct the URL to messaging

    var cEmailURL = ' mailto: . " [email protected] ? cc = ' + cCCAddr + '& subject =' + cSubLine + '& body =' + cbody;

    1. this.submitForm({)

    cURL: cEmailURL,.

    cSubmitAs: "XML."

    cCharSet: 'utf-8 '.

    });

    I'll work on export to Excel thing later I saw many tutorials on that.  But I can do the 3 fields to 1 thing at all?

    Help, please!

    First of all, you must understand that in 99% of cases, fields do not exist on layers. The two are separate entities.

    And the code you posted is not correct:

    Event.Value = This.getField ("Surname"+"-"+"FirstName"+"-" + "DOB") .valueAsString;

    You can access each field separately using the getField method, so it should be:

    Event.Value = This.getField ("Surname") .valueAsString + '-' + this.getField("FIRSTNAME").valueAsString + '-' + this.getField("dob").valueAsString;

  • How do reset you a conditionally required field value?

    Hello

    I have a checkbox and joined it a group of Radio and script to require Radio group if the box is checked:

    getField("JanCorrespondence").required = event.target.value = "Enclosed_Jan month"? true: false;

    But how to reset the required field if someone clicks on Jan by mistake, he let fly and clicks Feb instead?

    Thank you

    It seems that it should function in the mouse event to the top of the boxes in the left column:

    // Make the radio button group required if this check box is selected
    getField("JanCorrespondence").required = event.target.value !== "Off";
    
  • How to select the values for each check box in a group of records

    Hello

    I have a requirement in form 10g. In this form there are 10 records are display each record has a checkbox is there if I click on the check box save number one and number three and make some changes in the text field (field adjustment is the number data type) and then finally, I want to see the total a total amount called field.

    In this, my question is how to select specific to a group of records records? and finally these selected records are inserted in a table.
    Because I am not able to read these records at a time.
    Is there any table to define a record group to fetch each of them individually for example Rec [1] Rec [2]... like this if yes please suggest me the steps how to do this.

    Thanks in advance
    Prasanna

    Published by: user10315107 on December 17, 2008 23:44

    OK, so you want to shoe the total amount in the form itself (I guess that somewhere under the dashboard lines?).

    You can do this easily using formulat elements:

    1 create a new item in your block where the field amount is places, set "section of the database" on the 'No', 'calculation mode' to the 'formula' and the 'formula' himself to something like:

    CASE WHEN :BLOCK.CHECKBOXITEM=CHECKVALUE THEN :BLOCK.AMOUNT+:BLOCK.ADJUSTMENT ELSE 0 END;
    

    This formula returns 0 if the checkboxitem is not checked, otherwise the sum of amount and adjustment (of course you can adjust the names of elements and the value for 'Checked')
    2. place the element in the layout, if you wish.
    3. set the property "Query all Records" to "true" for your block elements, this is necessary for the calculation to work
    3 create a control block to keep summary article in a, "Single Document" set to 'True '.
    4. place a new element in this control block, set 'Calcuation mode' to 'Summary', 'Summary block' to your block elements, 'Summary point' in newly created formula section in the block elements
    and function of synthesis for the "sum".
    5. place the element in the layout

    She's.

  • Display a field value, and a message in a message box text

    Hello

    I got a message box that indicates the value of a text box when a button is clicked. I would like to add a message to the message box text, so that my message box displays something like:

    You have entered this data: 'textField value'

    This script works for the value of text field, but I can't understand how to combine it with a regular message box text message. I tried different combinations of () and "" but no luck.

    If

    (TextField1.rawValue ! = null( )

    {

    xfa.host.messageBox (TextField1.rawValue

    , "Message box title");

    }

    Kirstine

    Hello

    I think that the code would be something like this

    If (TextField1.rawValue! = null)

    {

    xfa.host.messageBox ("you entered the data:" + TextField1.rawValue, 'The Message box title');

    }

    Hope this helps

    Malcolm

  • How to make the sum of the two values in the text boxes?

    Hi people,
    Am a beginner in oracle 9i with forms 6i forms.using. I want to add two values in two text boxes and the result should be displayed in the third text box.
    How to write code in when the button is pressed the trigger of a push button? pls suggest me.

    Concerning
    VIDS

    I have not problem
    Better you recreate the new form

    Block3
    1 button
    2. item1
    3 item2
    4 point 3.

    every article must be in a canvas

    what button to trigger
    writing and code test it again.

    give point 1 only
    give point 2 only
    Now press the button
    output should on the 3rd point.

    Check and return back.

    Iqbal

  • How to remove the focus from the field of the custom label

    Hello

    I have a question on the subject to focus on fields. I did a registration form and added a label + image and text box on a vertical field Manager. but when I scroll through image and text box get the focus and disappear from my label.
    I took the custom label field and the custom text box.
    Help, please...

    protected void drawFocus(Graphics graphics, boolean on){paint(graphics);}
    
  • When I delete the Photostream images, they also disappear from the iMac.  How can I remove photos from the photo gallery and keep them in the section Photos of Photos on my Mac?

    I am trying to remove photos from the photo gallery without having them also disappear from my Mac.  How?

    You must copy those you want to your Mac first.

    Remove photos from my photo - Apple Support stream

    The following photos will not be deleted when you delete photos from my photo stream:

    • Photos that you copied to the tab pictures or film on your iOS device
    • Pictures that you have imported into your iPhoto or Aperture library
    • Photos that you've copied in a folder on your PC and are not part of my photo stream
  • How to check a field whose type "list check box"

    Hello

    How can you check if a field with the field type "list box" is checked or unchecked in a web - app.

    If I use

    {% If the element.} ['Open everyday of the week']! = « » -%}

    {{point. ["Days of open doors week"] | {{replace: ',', ' '}}

    {endif %}

    It shows all the values checked in the chain.

    If I use == "" == "0" (to check if the string is empty), it does not show anything. "

    I want to trigger the checkboxes 'disabled '. The question is: how?

    Thanks for any help.

    Kind regards

    Carla

    It is events Dynamics Carla. BC didn't spit on a value checked or unchecked in this regard.

    If it's to do with the front-end server and users by clicking on this javascript.

    In terms of BC, it spits out data, NOT html. This output is not html, so you must use the value to train your HTML code. IF it is a value, then you can checked in your entrance to box OR not if it's the other value.

    Whenever you want to see a put just database web apps:

    In your layout and display your console in browsers.

  • How to write in Hebrew, from right to left, and not in the mirror?

    I have the master collection CS6 installed on windows 8

    all is well just that Hebrew writing is mirrored. How to write from right to left?

    Hi yonir,

    Please see the type Arabic and Hebrew in Photoshop

    Let us know if that helps.

    Kind regards

    Assani

  • How to make a DVD from a video file and the legend?

    Has tried to get yet cc, but cannot get the creative cloud.  isn't there.  Can I burn a DVD from Media Encoder?

    You can still get by installing Premiere Pro CS6 creative cloud. Again, part of this Setup program.

    See the next page.

  • How to remove Windows 7 from dual boot XP and Windows 7?

    I have orig. had XP installed 7 and then uninstalled 7 back to XP. Made a mess. Just try to return to the single operating system. What are your suggestions?

    * original title - two versions of Windows XP & Windows 7 *.

    Hello

    Click on the link below.

    http://www.mydigitallife.info/2009/01/17/how-to-uninstall-and-remove-Windows-7-or-Vista-leaving-Windows-XP-on-dual-boot-system/

  • SPA-3102: how to fill the calls from SIP to PSTN and vice versa?

    Hello, since my ISP to my office blocked SIP ports, of I'll try and use it at home where the ATA works very well.

    If I call you ATA installed in my office in the United States (where there is no problem) to my ATA at home in India, I have how to route the call selectively to theFXS port or port FXO of the anti-terrorism Act in India? I I want to answer the call directly using the phone connected to the ATA instrument or make another local call out on the PSTN connection.

    TIA

    You get two accounts of Gizmo.  You put an account on the tab line 1, you put the other account on the PSTN line tab.  If you want to ring the phone attached to the SPA3102, you dial the account tab line 1.  If you want to get the tone to fill an outgoing line PSTN call, you call the account registered on the PSTN line tab.

Maybe you are looking for

  • WHEN FIREFOX LOADS IT CHARGE 40 + YAHOO TABS DOES NOT WORK IN OTHER BROWSERS YAHOO OF HOME PAGE

    WHEN I GO TO FIREFOX MY HOMEPAGE IS MY YAHOO. YAHOO FORTY TABS START LOAD AND IT SLOWS EVERYTHING DOWN NOT TO MENTION ALL THE STUPID TABS AT THE TOP OF THE PAGE. IF I USE SAFARI AND MAKE THE YAHOO HOMEPAGE, THIS DOES NOT HAPPEN.

  • Windows 7 won't start on Satellite L650

    Hey,. I went to turn on my laptop this afternoon and windows does not start. I get the loading screen animation, but nothing happens. When I restart, I get the option to repair windows - but when I go in, all I get is a black screen with a white curs

  • Skype does not recognize my user name

    Help! Why Skype does not recognize my user name, I've used before in another computer? I use Skype 4.2 on Windows 7.

  • e-mail account a be temporarily disabled

    I got a message this morning that my email account is temporarily disabled and for direct support of windows, how can I get my active email again?

  • Scale along the way

    "Animation guide based on the width of the variable line", number 2, I can't find "Interpolation" to activate "scale along the way.The create link paths to animate CCThank you