How do I tally values that only have a ticked Check Box next to them?

Hi Folks,
I'm new to Acrobat forms and have recently finished a complicated 7 page form for a client and I am quite pleased with it.
But the client has come back with the following request:
They want Check Boxes next to a series of values and, when a Check Box is ticked, it only adds that ticked value. To show what I mean, please see the below image.
So basically, there is a field on the left-hand side (Current Monthly Repayments) that tallies all the values - in my example this totals $50.00. Then, there is a field on the right-hand side (Future Monthly Repayments) that needs to tally only the values that have a ticked "Yes" Check Box next to them. In my example, this would produce a tally of $20.00.
Does anyone know how this could be done?
Thank you

Yes, that's perfect. Try the following custom calculation script:
// Custom calculation script for future monthly repayments field
(function () {
     // Initialize variables
     var i, cb, v, sum = 0;
     // Loop through each row and add repayment value if Yes is checked
    for (i = 1; i < 7; i += 1) {
        // Get the value of the check box
        cb = getField("CashFlowCheck" + i).valueAsString;
        // Get the value of the repayment field, as a number
        v = +getField("CashFlow" + i).value;
        // Add the value to the sum if the check box is checked
        if (cb === "Yes") {
            sum += v;
    // Set this field's value to the sum, rounded to the nearest cent
    event.value = util.printf("%.2f", sum);

Similar Messages

  • How to hide transaction codes that i have worked in command box

    Hi ,
    Is there any possible way not to display the transaction codes that i have worked in command box . ex: i have used SPRO ,CRMD_ORDER and other transaction codes to open requred screens.Now i can see last 10 transaction codes  in command box  that i have worked but i dont want to display them .
    Please suggest me the solution not to show them.
    Points will be rewarded.

    hi sap crm,
    the command box is the create button, isn't it?
    if yes, you can remove it by removing authorization for the user that create the order
    hopes it helps
    cheers

  • TS4124 how do sync a book that I have added as music to itunes on my iMac and then listen to this book on my iPhone.  Itunes says the icloud status is waiting so the song(book) is in the process of being matched but has not yet been processed.  (no help t

    how do sync a book that I have added as music to itunes on my iMac and then listen to this book on my iPhone.  Itunes says the icloud status is waiting so the song(book) is in the process of being matched but has not yet been processed.  (no help there)

    Hi,
    Why are you trying to add a book as music? It will not match as this only applies to music files. It will be uploaded if the bit rate is 96 Kbps or greater.
    You should change media type to audiobook and you will be able to sync by wifi or USB.
    Jim

  • How can I use apps that I have purchased from Apps Store for Mac on my iPad2?

    how can I use apps that I have purchased from Apps Store for Mac on my iPad2?

    Thanks, varjak, it is too easy to fall into use of jargon assuming everyone understands what it means.
    One additional point in all of this, not all "iDevice" apps run on every "iDevice".  Some are customized for a specific device, or class of devices such as the iPod/iPhone with their smaller screen.  Others for just the iPads for their larger screens.  So the user needs to be sure they are getting an app that will work on their specific device.
    And to Phoneboone, you do need to purchase the app again if it is for a different class of equipment.  When you are looking at apps such as iWorks for the Mac and iWorks components for the iPad, the iPad versions are very inexpensive.  Pages is only $10 (US) which is really cheap for such a good word processor that reads and saves in the MS Word format.
    Anyway, search for what you need and just enjoy the convenience of so many options for apps.

  • HT5035 I will like to know how to get the money that i have in my  Itunes acc to get it off and buy a cd with it

    I will like to know how to get the money that i have in my itunes acc how to used it up to buy a cd with it

    LatachaM_VZW wrote:
    If the incorrect PIN code is entered too many times, a PIN Unlock Key must be obtained from Verizon Wireless at 908-559-4899 if you are outside of the United States and 800-922-0204 or *611(send) from your mobile number inside the United States..
    The SIM PIN option is only available when the handset is in GSM / UMTS mode. Refer to Network Mode Setting for further assistance.
    Thank you, LatachaM_VZW
    Are you talking about the PUK code (when the PIN for the SIM has been wrong too many times)?  The OP is talking about network unlock, and is using a foreign SIM.   Global Services certainly wouldn't have the unlock code for a SIM that isn't theirs.
    I have heard that if you do enter the incorrect network unlock code too many times, the phone becomes permanently locked (i..e cannot be unlocked even with a valid unlock code) but not everyone agrees that this is true for all phones.
    Jax's post above really says it all, you will need to search the web for a service that will unlock this Motorola phone.  In doing so, you might find a number of threads that say the Global has to be activated in the US before an unlock code will work.  Others were able to unlock without this. 

  • I cant access imessages says my email is already in use how do i fix this i only have one email

    I cant access imessages says my email is already in use how do i fix this i only have one email

    The login parameter was a username, I'm an early adopter.
    I've set up a new account using an "[email protected]" email, but it doesn't solve the fact that I should have been able to reuse my normal email as the account associated with it was deleted (supposedly?).
    As for the sync errors, I keep getting them, but have narrowed them down to bookmarks syncing. I'll create another thread for that when I know more I guess.

  • How can I save photos that I have modified in Photoshop Elements to my computer hard drive?

    How can I save photos that I have modified in Photoshop Elements to my computer hard drive folders?

    When finished editing click File->Save/Save As and you can either overwrite the original file or rename it and save as new file keeping original intact.
    You can find more info on saving and various settings here http://help.adobe.com/en_US/photoshopelements/using/WS287f927bd30d4b1f89cffc612e28adab65-7 fda.html#WS287f927bd30d4b1f89cffc612e28adab65-7fd7
    Thanks,
    Garry

  • How do I get CD that I have loaded to my itunes to transfer to a new computer

    How do I get CD that I have loaded to my itunes to transfer to a new computer?

    You setup Home Sharing between those computers and transfer it across
    Understanding Home Sharing
    TroubleShooting Home Sharing

  • Can I save PDF's in a form where text can be edited by people that only have Adobe reader ?

    If I have Adobe acrobat can I save PDF's in a form where text can be edited by people that only have the free version of Adobe reader ?
    If so do I need a prof verion of Acrobat to do this ?

    If I have Adobe acrobat can I save PDF's in a form where text can be edited by people that only have the free version of Adobe reader ?
    Yes.
    If so do I need a prof verion of Acrobat to do this ?
    No.

  • How do i delete meetings that I have been invited to from my iphone (without going to my PC)?

    How do I delete meetings that I have been invited to from my iphone (without using PC)?

    You cannot delete an event that you did not create.  This does not work.

  • Does any one know how to "reset" my password that I have to plug into my mac-book pro system before I download a file?

    Does any one know how to "reset" my password that I have to plug into my mac-book pro system before I download a file?

    Reset Password
    Follow the instructions in this article.
    http://pondini.org/OSX/Password.html
    Best.

  • How to delete any backups that i have ever created ?

    how to delete any backups that i have ever created ?

    On your computer:
    In iTunes go to Edit/Preferences/Devices and you'll see a list of all backups on your computer. Click on the ones you would like to delete.
    On your phone:
    In case you are backing up to iCloud, go to Settings/iCloud/Storage and Backup/Manage Storage/Backups/ tap on the device and scroll down to the bottom of the page and hit "delete backup"

  • How do i put photos that i have got on my Laptop back on to my Nikon Camera?

    How do i put photos that i have got on my laptop back on to my Nikon Camera?

    I've never tried that. I really don't know if it can be done - try the iPhoto discussion board at https://discussions.apple.com/community/ilife/iphoto.
    Good luck,
    Clinton

  • HT1459 How can I download songs that I have purchased onto a new ipod?

    I have lost the ipod that I have loaded songs on, I have a new ipod and was wanting yo know how to download the songs that I have already purchased onto it.

    Go to the iTunes Store, log into your account, and click the Purchases link under the Quick Links. From there you should be able to re-download some or all of your purchased content. Note that not all content has been licensed for re-downloading in all countries at this time. You can see what content you can download here:
    http://support.apple.com/kb/HT5085
    Then you can sync the tracks to your new iPod. For more information on re-downloading, see:
    http://support.apple.com/kb/ht2519
    Regards.
    Forum Tip: Since you're new here, you've probably not discovered the Search feature available on every Communities page, but next time, it might save you time (and everyone else from having to answer the same question multiple times) if you search a couple of ways for a topic, both in the relevant forums and in the Apple Knowledge Base, before you post a question.

  • How can I use slideshows that I have created in Aperture 3 (complete with captions and music tracks) in my DVD through iDVD version 7.1.2 ?  iDVD Manuals that I have read seem to avoid explaining that export process.  Any advice will be greatly appreciate

    How can I use slideshows that I have created in Aperture 3 (complete with captions and music tracks) in my DVD through iDVD version 7.1.2 ?  iDVD Manuals that I have read seem to avoid explaining that export process. I'm using Aperture 3, Mac OS X (10.7.5), on a Any advice will be greatly appreciated.  Anthony Zasadney, Bolingbrook IL.

    Export the slideshow from Aperture as a .mov file and import it into iDVD.

Maybe you are looking for

  • How to create multiple rows in a child table from the multi select Lov

    Hi We have Departments and EmployDept and Persons tables and each employee can associate multiple departments and vice versa.While creating a Department page there should be a Multi Select LOV(values from Persons table) with search option for the Per

  • Mouse cursor sticking in Safari?

    I've noticed this weird thing where the cursor sometimes gets stuck while I'm posting on forums like this one. It happens when the text entry box is highlighted, like the one I'm typing in right now. It's not the trackpad, I don't think, because it w

  • Display freezes and sometimes, system auto reboots???

    I have the Ultra 645 MS6547 mobo and am using an ATI Radeon 7500 All0in-Wonder AGP vid card. My system, has of recent, auto reboots of display frezes  maybe tree times each evening. I have worked with MSI & ATI. No concrete answers. Has anyone else e

  • Printing CD jewel case inserts problem

    In iTunes I am unable to print a CD jewel case insert from the print menu.  Every theme prints out "blurred" except the Large Playlist (black & white) theme.  Has anyone else had this problem?  I have wasted so much ink trying to get my favorite them

  • Jerky playback of movies only in iTunes

    Have movies that play perfectly directly from Quicktime (7.1.3) and when loaded on the iPod with iTunes. But when the same file is played within iTunes (7.02) as a movie, the playback is jerky and like stop motion. The apparent frame rate is several