Can someone help me how to understand the syntax of a calculation in a form Acrobat?

For the first time I have created a PDF form for the child summer camp brochure. After countless hours I was able to figure out how to make some simple calculations (number of sessions of camp price subtotal = x). But I can't understand how to create a script that will take partial total revenue and generate a number which corresponds to 10% of the subtotal. All I want to do is have a separate field (reduction), which can reference the subtotal, and if it's over $ 170.00, calculates and displays a number which corresponds to 10% of this amount. From there, I can understand how to subtract 10% of the subtotal, but I can't understand the syntax for the calculation of the 10%. Also I don't know if that should be entered in the Notation of Simple box field or calculation Script custom area to calculate in the text field properties box. Any help would be greatly appreciated!

You must use JavaScript. It would be something like:

Personalized to discount field calculation script

(function () {}

Get the subtotal value, as a number

var = subtotal + getField("Subtotal").value;

Set the value of this field

If it is greater than 170, calculate 10%, otherwise it is zero

Event.Value = subtotal > 170? 1 * subtotal: 0;

})();

This last line is equivalent to:

If {(subtotal > 170)

Event.Value =.1 * subtotal;

} else {}

Event.Value = 0;

}

It's just more compact.

Replace "Subtotal" in the line of getField above with the actual name of the subtotal field. Also, set all the fields calculated read-only. And make sure the field calculation order is correct.

Tags: Acrobat

Similar Questions

  • can someone tell me how to disable the guest account. I do not have the password and the administrator. my pc is vista Home premium

    can someone tell me how to disable the guest account. I do not have the password and the administrator. my pc is vista Home premium

    Hello

    Enable or disable the guest account the
    http://Windows.Microsoft.com/en-us/Windows-Vista/turn-the-guest-account-on-or-off

    I hope this helps.

    Rob Brown - Microsoft MVP<- profile="" -="" windows="" expert="" -="" consumer="" :="" bicycle=""><- mark="" twain="" said="" it="">

  • I'm on an old computer with microsoft XP, it has been so long since I used it, one that I forgot my password can someone tell me how to reset the password?

    I'm on an old computer with Microsoft Windows XP, it has been so long since I used it, one that I forgot my password can someone tell me how to reset the password?

    Hello

    This is information from Microsoft for when you forgot your XP password.

    "How to connect to your Windows XP-based computer if you forget your password or if your password expires"

    http://support.Microsoft.com/kb/321305

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    Other information above, we can not help you more with this.

    Microsoft prohibits any help given in these Forums for you help bypass or "crack" passwords lost or forgotten.

    Here's information from Microsoft, explaining that the policy:

    http://answers.Microsoft.com/en-us/Windows/Forum/Windows_7-security/keeping-passwords-secure-Microsoft-policy-on/39f56ef0-5d68-41AD-9daa-6e6019c25d37

    See you soon.

  • Can someone tell me how to upgrade the operating system on the MacPro?

    I have a MacPro1.1 which works fine, but now I can't use LightroomCC on that because the OS is no longer supported. Can someone tell me how to upgrade the operating system on the MacPro?

    Your Mac Pro 2006 supports only as high as Lion unless you use a hack.

    If you want Lion then order a code to download here:

    http://store.Apple.com/us/product/D6106Z/A/OS-x-lion

    and then use the code in the Mac App Store.

    If you need higher that the Lion then Google for the hack

  • Can someone tell me how to change the language on the sidebar?

    Hello world.  Can someone tell me how to change the language on the sidebar.  I'm in a language other than English, and it drives me crazy.  Thanks, have a nice day.

    Hello

    Please follow the steps from the link below.

    http://Windows.Microsoft.com/en-us/Windows-Vista/change-the-display-language

  • can someone tell me how to change the quality of the sound on my laptop Toshiba Windows 8? Thank you

    Can someone tell me how to change the quality instllation on my laptop Toshiba Windows 8?  Thank you

    I would say more in the direction of http://forums.toshiba.com/ and asking your question related to Toshiba.

  • Can someone help me to decide on the API or import program

    Can someone help me to decide on the API or import program by updating the seeded table qa_results.
    Keen to know if I can use return also in the workflow package?


    Kind regards
    Javed Khan

    Hi Julie,.
    see the MOS note:
    Need help for Oracle quality of open Interfaces and APIs [1366416.1 ID]

    also check below note that number of ERs is already high for quality results
    Responses to the discreet quality--> fair questions [1065716.1 ID]
    Thank you

  • can someone help me how to get previous lines having the same provider

    My question is:
    I have a table

    CREATE TABLE insert_table
    (
    NUMBER OF ACCTNUM,
    DATE TIMESTAMP (3),
    CODE VARCHAR2 (35 BYTE),
    PROVIDER VARCHAR2 (35 BYTE)
    )


    I INSERTED SOME DATA IN IT:


    1 1/22 / 2011 V1 BSO
    1 1/23 / 2011 V1 BSOF
    1 1/24 / 2011 BSOF V2
    1 1/25 / 2011 V1 BSOF

    IN THE SCENARIO ABOVE, I NEED TO GET RESULT AS:

    1 1/22 / 2011 V1 BSO NO.
    1 1/23 / 2011 V1 BSOF YES
    1 1/24 / 2011 V2 BSOF NO.
    1 1/25 / 2011 V1 BSOF YES

    iAM the WAY GET THE RESULT in A COMPLEX:


    SELECT ACCTnum, provider, date,
    CASE
    WHERE code = 'bsof.
    THEN (CASE
    WHEN COUNT(DISTINCT code) OVER (PARTITION BY ACCTnum, vendor) > 1 THEN
    (CASE
    WHEN LAG (code, 1, 0)
    COURSES (PARTITION BY ACCTnum, provider
    ORDER BY vendor, date) <>' 0'
    THEN
    (CASE
    WHAT RANK)
    COURSES (PARTITION BY ACCTnum, vendor ORDER BY 0) = 1
    THEN '' Yes. ''
    ON THE OTHER
    'no' END)
    ON THE OTHER
    'no' END)
    End ELSE ' no')
    ON THE OTHER
    'no' END
    result
    OF INSERT_TABLE
    WHERE l_workcode IN ('iso', 'bsofu') and ACCTnum = 1
    ORDER BY ACCTnum, date;

    CAN SOMEONE HELP OUT ME IN A SIMPLE WAY


    NOTE: FOR EACH ACCTNUM WE ONLY BSO FOR A PROVIDER AND SUPPLIERS HAVE CODE (BSOF).


    PLEASE HELP ME URGENT

    Your query can be rewritten as follows,

    SELECT acctnum,l_date,
           CASE
             WHEN code = 'bsof'
              AND COUNT (DISTINCT code) OVER (PARTITION BY acctnum, vendor) > 1
              AND row_number () OVER (PARTITION BY acctnum, vendor ORDER BY vendor, l_date) != 1
             THEN 'yes'
           ELSE 'no' END result
      FROM TEMP_TABLE
    WHERE code IN ('bso', 'bsof')  AND acctnum=1
    ORDER BY acctnum ,l_date;
    

    G.

  • I read the article on the change from the mysql_pconnect to mysql_connect, but he isn't supposed to be mysqli_connect? I don't see any version of PHP which has mysql_connect. Can someone tell me how to change the connections to mysqli_connect file?

    To the right,.

    I don't think that there is a mysql_connect but rather a mysqli_connect or PDO, which I have no idea how to use. Can someone tell me how to configure my Dreamweaver CS5 to contact mysqli_connect rather than the old and fixing to be deprecated mysql_pconnect. I have searched the Internet over and backward and impossible to find a person or an article that explains how to do this seemingly simple task. Everyone?

    MySQL.png

    If you want DW to this code, you will need to buy the Extension MySQLi (improved) Web server behaviors help. Currently available at 50% off the regular price.

    MySQLi server behaviors. Dreamweaver extension | WebAssist

    Otherwise, you must manually code yourself.

    Nancy O.

  • Hello! Can someone tell me how to select the two scenes of an existing project and color correct them in black and white exactly please?

    Hello! Can someone help me please? I'm learning just on Final Cut Pro and I have a family movie finished, edited by a professional editor years ago but I need to move from the stage two very bright red (shot on film light of day and used inside) only black and white. Whenever I select the specific images to change black and white selects the entire movie instead. Can someone help me please? Thank you, Tony

    Very fast: select, type command-6 to open the accelerator card and bring the Saturation all the way down.

  • can someone tell me how to reverse the order of the bits of a .hws file?

    I have a (digital) .hws file that is backwards.  I need to exchange the LSB and MSB to reverse the reading order.  Can someone tell me how to do this?


  • Can someone tell me how to change the color of the progress bar?

    Can someone tell me what we called the part highlighted in the below attachment & can I change the color from green to what I choose?

    http://i72.Photobucket.com/albums/I176/Tyrone787/ColorBar.jpg

    Hello

    There is no option in Windows to change the color of the progress bar. I suggest you to browse the Internet using the search engine and look for the applications (or even topics) that can change the color of the progress bar.

    Warning: Using third-party software, including hardware drivers can cause serious problems that may prevent your computer from starting properly. Microsoft cannot guarantee that problems resulting from the use of third-party software can be solved. Software using third party is at your own risk.

  • Can someone tell me how to expand the columns of names of files in file Explorer?

    In each program, I've never used, all the user has to do to make a column more wide is to click on the divider bar at the top (or the side of the column) and drag the wider column. Instantly. Easily. Nearly second nature without looking.

    Now, clunky Windows 8 coming, and it's so frustrating!  I went on line and saw hundreds of people griping about the same and some of the answers are right-click on the column heading and click on the size, or to choose the longest title in your file and right click and choose the size of the car, but I don't have any of these options.  I right click on the longer title and don't get choices such as car size or size.  There is not a definable column header.  Above the list of files is a bunch of stuff in the Ribbon, none of this centered above the list of files.  Above, there are a few possibilities for right click produce the word "size" in the box that opens, but is not an active link, and I can't click on it.

    I'm amazed that I bought this "top of the new version of line everyone will go to" and it does not with ease.  It is not calculate how wide to make the column... computers are great to calculate.  Why not Windows 8?   When a program allows you to work harder, take four or five steps to do one thing, that is not good design. He should do it for us, we should not be on the right side of the mouse, click on the left side, etc.

    My main question is how to do widen the column, and my secondary question is how can we get Microsoft to listen to us?  I read the comment after comment on dozens of complaints, which is one of the most common.  Thus, besides wishing they would listen to us... I'll call their hotline tomorrow and complain... what someone knows in the meantime what can I do to see all the title of my files?  Right now they are all cut in half way through.  I want to enter this bar on the right and drag it to the right to reveal the name of file in the way of how work most computer programs.

    It almost seems as if Microsoft tried to make it more difficult for their base of users and new users.   It boggles the mind.

    Of course, I'd appreciate it if someone can tell me if it is still possible to make the column wider, and I would love it if there was a response that is easy without going through a lot of steps.  Thanks in advance to anyone out there who has thought about it!

    Happy new year!

    CG

    There is no difference in the way you make the columns wider if I understand the question.
     
    I guess you see something like this (without the arrows highlighting red and pointing to the column headings and separators that you hover over, click on + hold and drag to make greater/smaller in the method you describe):

    Or are you speaking of something else than the "File Explorer" you mentioned in your question?
     
    Also - if you get the "double-arrow" cursor hover at the same place as you would drag to the size of column wider or narrower and rather - double-click on - it (as it always has) calculates the necessary width to see everything in the column to the left of the separator you are clicking on and re - size accordingly.
     
    I think that the right click of the column header (see section highlighted above) and change the size to fit refers to this menu, you would get when right-clicking on the column headers highlighted in the picture above...

    Now there's something for everyone - you have to be in DETAILS view (as always) in order to get these beautiful columns.  "Very large icons', 'Large icons', 'medium-sized icons", "Small icons", "List", "Tiles" or "Content" views will not have columns to sort by...

    In addition, if you notice in the last frame, in the "Détails" view, you must, depending on the size of your window, see "All columns to fit the size" as an option in the view menu.
     
    And the "size of all columns to fit" as shown in the two methods I could think casual to show calculations for all columns and adjusts large/more details for all visible columns in the display of the Explorer of files in all areas.
     
    Oh - and in case you want to "Détails" view to be the default view from this moment for your windows 'Windows Explorer '... Change to it (as shown above) and find the 'Options' button in the top Ribbon (usually the one furthest to the right) and click on it (not the arrows on the side of it - click it to select it) and should open a new window called "Folder Options."  Select the 'view' tab and click on "apply to folders" and all other folders that you open from the moment which will 'View' by default (unless you change it.)  * Special note * here - you can be originally 'Computer' or 'My PC' Windows Explorer - display you must have at least one folder of the selected (such as "drive Local (c)") drive and active in order to see the button 'Apply to records' assets to click.
     
    New - this is essentially the same since Windows XP.  Some of the options have changed names (heck, even Windows Explorer is referred to as 'This PC' now instead of 'Computer' and 'My Computer') and there were a few additional views added and deleted - but even advanced stuff are quite similar to the latest methods to infer.
     
    Hope that helps.  Ask if you have any other questions and please come back anyway let everyone know if the response was satisfactory!

  • T430s will not restart, can someone please explain how to use the 4 recovery discs?

    So I bought a Lenovo T430s, with Windows 8.1 almost 2 years (off warranty now). It comes frozen, has started to beep, then turns off, and now it won't restart. When I turn it on, it always goes to the black and blue screen that offers a Boot Menu and a Menu of Application. The Start Menu has 2 options: ATAPI CDO: MAST * beep * ADVD - RAM UJ8C2 and PCI LAN: IBA GE Slot 00C v1536 8.

    When I bought the laptop, it came with 4 disks. Two of them say "Windows 8 Recovery for Windows 8 Media products", and the other two say "operating system recovery disc, Windows 8 Pro (OEM Activation required 3.0)". "

    I don't know what that most of this way. Can someone explain how I can fix or restart my laptop? I wonder if I am supposed to use a bootdisk of some, although it is at a certain menu option... I really appreciate any help

    The first item in the Startup tab is 'Boot', Yes?

    Press enter and start > splash screen should display with something like a list of the Boot priority order .

    What do you see that listed there?

    Kind regards.

  • Hi can someone tell me how to reinstall the app Acer Care Center

    Hi, I can not reinstall the Acer helpdesk it error "failed download. Check your network connection and try again.

    Someone at - it managed to all, any help appreciated.

    Acer staff, can you help or advise please?

    Hi guys,.

    Here is the link to download the Acer care center. Let me know if you have trouble.

    http://www.Acer.com/AC/en/us/content/software-Acer-care-center

    Cory

Maybe you are looking for