My calculation "Total" box adds sum of all text fields whether they are visible or not, do I change

I have check boxes that show and hide text fields. (Thanks to Gilads Java script). In options I have a default value for each text field.
My "Total" Field field adds all fields even if they are not checked and visible. Need to have it only include them if they are checked and visible.

You can't attach forms by email, or any other means, so it didn't come through.
Since your fields have default values and aren't calculated based on the state of the corresponding check box, you will have to use a custom calculation script for the Total field that can check to see if any of the fields are hidden, and if so, don't include their values in the sum. For example:
// Custom calculation script
(function () {
    // Set up an array of field names to include in the total
    var aFields = ["text1", "text2", "text3", text4"];
    // Initialize variables
    var i, f, sum = 0;
    // Loop through the fields an calculate the sum
    for (i = 0; i < aFields.length; i += 1) {
        // Get the current field
        f = getField(aFields[i]);
        // Add the value of the current field to the sum if the field is visible
        if (f.display == display.visible) {
            sum += +f.value;
    // Set this field value to the sum
    event.value = sum;
You can send me a PM if you want help offline.

Similar Messages

  • I have an iPhone 5s and in my iTunes music library have the songs checked that I want downloaded onto my phone. Instead of doing this, it is syncing all songs whether they are checked or not even tho I have the "sync only checked songs" box checked.

    I have an iPhone 5s and in my iTunes music library have the songs checked that I want downloaded onto my phone. Instead of doing this, it is syncing all songs whether they are checked or not even tho I have the "sync only checked songs" box checked. So basically it's syncing all of the songs when I just want the checked ones on. This is very frustrating.

    When your device is connected, check the tabs at the top ("Summary" "Apps" "Music," etc. Under the Music one, check to see if "Sync Music>entire music library" is checked. If it is, that may be why all the songs are syncing.

  • Please help! I defragged my hard drive and now Illustrator CS6 is trying to open all of my complex Illustrator files with a "Text Import Options" box as if they are text files, and they are not opening!

    Please help! Illustrator CS6 started trying to open all of my complex.ai files with a "Text Import Options" box as if they were text files, and they are not opening!  Help!

    Hi Monika,
    I have spent the last two or three days trying to do what you suggested.  I uninstalled Adobe 6 from Windows.  Some files that CS6 placed on my system during installation remained, including fonts and .dll files.
    I had to abandon the Cleaner Tool you suggested because in one screen it allowed me to specify removing CS6 only, but on the following screen it only gave on option to remove ALL Adobe programs.  I could not do that because I didn't have the serial number handy for CS3 in case I want to reinstall it at some point.
    I tried to get technical help with the Cleaner Tool problem but no definitive help was available, so I reinstalled CS6 again without having the benefit of the Cleaner Tool.  I tried to get the serial number for CS3 so I could use the Cleaner Tool but spent 2 wasted hours in chat.  Even though I had a customer number, order number, order date, place of purchase, the email address used AND 16 digits of the serial number, in two hours the agent couldn't give me the serial number.  After two hours I had nothing but instructions to wait another 20 minutes for a case number.
    Illustrator CS6 is still trying to open some backups as Text and otherNone of the problems have been fixed.  I have tried to open/use the .ai files in CS6 installed on another system and am getting the same result, so I don't think the software was damaged by the cleaner.  The hard drive cleaner is well-known and I've run it many times without any problem to previous versions of Illustrator or any other programs.
    When I ordered, the sale rep promised good technical support and gave me an 800 number, but after I paid the $2000, I learned that the 800 number she gave me doesn't support CS6 and hangs up on me.  Adobe doesn't call it a current product even though they just sold it to me about 3 weeks ago.
    Would appreciate any help you experts can offer.  If I can't solve this, the last backup I can use was from June and I will have lost HUNDREDS of hours of work and assets that I cannot replace.
    Exhausted and still desperately in need of help...

  • How to Add/Concatenate to a text field, values selected in a combo box

    I have a combo box form field that allows the user to select a value from a list and click on an Add button. The Add button should add/concatenate the vaue selected to a text field in order to create a list of values selected. I'm not sure how to do this using Javascript in Acrobat? I know I need to add the javascript to the Add button's Mouse Up action. Any help would be greatly appreciated. Thanks!

    Thanks so much - it works!
    >>> "Gilad D (try67)" <[email protected]> 9/25/2013 9:16 AM >>>
    Re: How to Add/Concatenate to a text field, values selected in a combo box created by Gilad D (try67) ( http://forums.adobe.com/people/try67 ) in JavaScript - View the full discussion ( http://forums.adobe.com/message/5712118#5712118 )
    Let's say the text field's name is "Text1", and the combo is called "Combo1". You can then use this code as the MouseUp script of the Add button:
    var f1 = this.getField("Text1");
    var f2 = this.getField("Combo1");
    if (f1.value=="") f1.value = f2.value;
    else f1.value = f1.value + ", " + f2.value;
    Please note that the Adobe Forums do not accept email attachments. If you want to embed a screen image in your message please visit the thread in the forum to embed the image at http://forums.adobe.com/message/5712118#5712118
    Replies to this message go to everyone subscribed to this thread, not directly to the person who posted the message. To post a reply, either reply to this email or visit the message page: http://forums.adobe.com/message/5712118#5712118
    To unsubscribe from this thread, please visit the message page at http://forums.adobe.com/message/5712118#5712118. In the Actions box on the right, click the Stop Email Notifications link.
    Start a new discussion in JavaScript by email ( mailto:[email protected].com ) or at Adobe Community ( http://forums.adobe.com/choose-container!input.jspa?contentType=1&containerType=14&contain er=3286 )
    For more information about maintaining your forum email notifications please go to http://forums.adobe.com/message/2936746#2936746.

  • Trying to add a flowable/expandable text field to the end of a form

    I have created a form in LiveCycle Designer.  At the end of that form, I would like a Summary text box that expands to allow the person who is filling out the form to type as much information as is necessary and it will all be visible/print when they are done.  I have the field to the point where it will expand (finally!) but I have requested that the field allow page breaks (including all subforms it is contained within) but when it expands, it all carries over to the next page and doesn't allow us to go beyond one page of typing.  Is there anyway to remedy this situation so the text will actually "flow" from one page to another instead of just carrying it over?

    I appreciate you replying to my post and maybe this is just that I have never used the forum before but your reply said that you hoped the sample document would help me and I don't see a sample document attached to the reply.  Am I missing something?
    Date: Wed, 24 Nov 2010 18:32:12 -0700
    From: [email protected]
    To: [email protected]
    Subject: Trying to add a flowable/expandable text field to the end of a form
    I hope this sample file solve your issue too.
    >

  • When I'm trying to upload my homepage, (=the index.htmI) Iweb is telling me that it is not possible, because there is a unkown error. All the other pages from my website I upload very well,and they are visible. What can I do to repaire?

    Hello people from the forum,
    I have made a beatifull website, and upload it with filezilla to a server, and also I upload it to a local map.
    Everthing was going very well, but i don't get my website on the internet, because one page will not be uploaded (again) and that is my first page, the home page (and for as far I understand also my index.html)
    I web telling all the time: can not publish this page because there is an unknown error.
    The strange thing is, that I can see, even on the local map as on the online server, that my home page is still there!
    the size of the index.html is 303 kb (and when I open it, it is empty, but maybe thats normal?)
    And yes, I did a lot of stupide things, by accident I deleted a lot of files and documents on my computer :-((
    I reinstall Iweb (3.04) but the error is still there.
    So, do I have to reinstall OS lion totaly? But them I i'm afraid that I lost all my webpages (even they are on the server now)
    (can I put all on a USB stick, and make later again a new homepage?)
    I hope one of you recognize this problem and have a more simpeler solution than my story here above.
    Sorry for my english, I hope you understand.

    Hello Wyodor,
    thanks for your reply on my question.
    You are wright the index file is 308 KB.
    And offcourse that I delete my files and documents is not an Iweb problem, but because my English is not that good, that I thougt I try to tell the whole story, and hope people can read trough the lines.
    Why I didn't use Iweb to upload to the server is because the server company recommanded to use file zilla. And I am a nobody with this kind of things, so I did exactly what they tell me to do.
    No, i did not make a backup of Iweb and the domain file, but reading other messages on this forum showed me that I can maybe try to make empty the cashfile (?)
    and otherwise I have bad luck and have to make my website again. Offcourse I have a lot of examples from all the pages (copied from the local map to my USB stick) and my website is aprox. 15 Mb, (not so big) so it will cost me a few nigths.
    But I'm still hoping on a miracle :-)
    greetings Lasource

  • In 3.6.8 I no longer see the box that lets me accept/reject cookies before they are sent by a website. How do I restore this feature?

    == Issue
    ==
    I have a problem with my bookmarks, cookies, history or settings
    == Description
    ==
    Using Firefox 3.6.8 I no longer see the box that lets me accept/reject cookies before they are sent by a website. How do I restore this feature?
    == Troubleshooting information
    ==
    Application Basics
    Name Firefox
    Version 3.6.8
    Profile Directory
    Open Containing Folder
    Installed Plugins
    about:plugins
    Build Configuration
    about:buildconfig
    Extensions
    Name
    Version
    Enabled
    ID
    CinemaNow Plugin for Firefox 1.4.0.5 true {3112ca9c-de6d-4884-a869-9855de680400}
    DictionarySearch 3.6.5 true
    fluxDVD Download Manager 0.5 false {400F0BDB-6C49-43A4-BE1F-76D7327A604D}
    ForceField Toolbar 1.5.152.10 true
    Java Console 6.0.02 false
    Microsoft .NET Framework Assistant 1.2.1 true {20a82645-c095-46ed-80e3-08825760534b}
    Pronto 0.9.8 false {6aec4bf7-c16a-4e5c-a65a-114a57157969}
    Amazon Wish List 1.1 true [email protected]
    Java Console 6.0.20 true
    TV-Fox 1.5.6 true {2f17f610-5e97-4fed-828f-9940b7b577a4}
    CookieSafe 3.0.5 true {9D23D0AA-D8F5-11DA-B3FC-0928ABF316DD}
    BetterPrivacy 1.48.3 true
    Modified Preferences
    Name
    Value
    accessibility.blockautorefresh true
    accessibility.typeaheadfind true
    accessibility.typeaheadfind.flashBar 0
    browser.history_expire_days.mirror 180
    browser.history_expire_days_min 5
    browser.places.smartBookmarksVersion 2
    browser.startup.homepage http://www.google.com/
    browser.startup.homepage_override.mstone rv:1.9.2.8
    extensions.lastAppVersion 3.6.8
    general.useragent.extra.microsoftdotnet ( .NET CLR 3.5.30729)
    network.cookie.cookieBehavior 2
    network.cookie.lifetimePolicy 2
    network.cookie.prefsMigrated true
    places.last_vacuum 1280804078
    privacy.sanitize.migrateFx3Prefs true
    security.warn_viewing_mixed false
    == Firefox version
    ==
    3.6.8
    == Operating system
    ==
    Windows Vista
    == User Agent
    ==
    Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9.2.8) Gecko/20100722 Firefox/3.6.8 ( .NET CLR 3.5.30729)
    == Plugins installed
    ==
    *-6.0.12.1739
    *np-mswmp
    *MPDRM License Acquisition Plugin
    *1.9.0009.1
    *The QuickTime Plugin allows you to view a wide variety of multimedia content in Web pages. For more information, visit the QuickTime Web site.
    *Adobe PDF Plug-In For Firefox and Netscape "9.3.3"
    *Default Plug-in
    *Shockwave Flash 10.1 r53
    *4.0.50524.0

    Are you talking about CookieSafe, which you have installed? See: https://addons.mozilla.org/de/firefox/addon/2497/
    If so, Is your Status Bar displayed? Click View, if no check mark next to Status Bar, click on Status Bar to place a check mark. Does it show now?

  • Security question keep saying they are wrong and I know they are right. I can't change them cuz when I try it tells me to answer the questions. I have tried everything changing my account and all and still can't get it can some one please help me out.

    Security question keep saying they are wrong and I know they are right. I can't change them cuz when I try it tells me to answer the questions. I have tried everything changing my account and all and still can't get it can some one please help me out.

    Go here and select "Reset your password."  You will receive an email message with a link that bypasses the questions.  You will then be able to select and answer the questions again.

  • Windows Acrobat X... Used to be able to Certify with Visible signature, and still be able to search all text.  Now some areas (text resembling tables) are no longer searchable.  How can I fix this?

    Acrobat X... Used to be able to Certify with Visible signature, and still be able to search all text.  Now some areas (text resembling tables) are no longer searchable.  How can I fix this?

    [discussion moved to Creating, Editing & Exporting PDFs forum]

  • HELP I have lost all my motion 4 content from all the files, ive looked in all the files and they are all empty. can i get replacement content as I my dvds where stolen along. with my other laptop.

    HELP I have lost all my motion 4 content from all the files, ive looked in all the files and they are all empty. can i get replacement content as I my dvds where stolen along. with my other laptop. any Ideas. would be a great help. For Motion 4.

    Try a hard reset:- hold the home button AND the power switch - ignore the red "Slide to power off" and wait ubntil the iPhone powers down, and then restarts - at the Apple logo, release all the buttons and see if your contacts reappear.

  • I upgraded my Iphone 4 to os7 and not all of my application icons are visible.  They can be found by searching.  How do I put them back on my desk top?

    I upgraded my Iphone 4 to os7 and not all of my application icons are visible.  I can locate them using the search feature but I would like to have the icons visible on my screen for imediate access. So how do I do this?

    They got pushed to another page of the Home screen. Scroll from left to right to find them. You can then move them to where you want them.

  • Trying to add podcasts to shuffle I tunes says they are there but when I play them only a few are available?

    trying to add podcasts to shuffle I tunes says they are there but when I play them only a few are available?

    Hello rhdarby2,
    Thank you for using Apple Support Communities.
    For more information, take a look at:
    iPod shuffle: Playing audiobooks and podcasts
    http://support.apple.com/kb/HT1831
    Adding Audiobooks and Podcasts to iPod shuffle
    The Autofill feature of iTunes will not add audiobooks and podcasts to any iPod model. They can be manually added by dragging them to the iPod shuffle in iTunes.
    For iPod shuffle (3rd generation), you must enable Manually manage music in the Summary tab to drag songs to iPod shuffle. Additionally, you can automatically sync audiobooks using the Music tab and sync podcasts using the Podcasts tab in iTunes.
    Have a nice day,
    Mario

  • My IPad sound keeps turning off. I have checked all the settings nd they are ok. I have to reset it all the time. It is very frustrating as I use it as an alarm, need I say I've waken late a few times.

    My IPad sound keeps turning off. I have checked all the settings nd they are ok. I have to reset it all the time. It is very frustrating as I use it as an alarm, need I say I've waken late a few times.

    I'm having the same problem?

  • I use premiere and cannot access all of the transitions, they are grayed out. Why is this?

    I use premiere and cannot access all of the transitions, they are grayed out. Why is this?

    Maybe you have them "filtered" at the top of the FX Window (Icons)

  • Javascript that affects all text fields

    I am now trying to figure out a script that will affect all text fields in the document, there would be a button that when clicked would affect all text fields in the document.
    Thank you

    Right, then. Here's the code I'm inserting into my document.
    function processTextFields () {
         for(var i=0;i<this.numFields;i++) {
              // Loop through all fields on document
              var fldName = this.getNthFieldName(i);
              var oField = this.getField(fldName);
              var a = oField.getArray();
              for (j =0; j < a.length; j++) {
              if (oField.type == "") {
              return;
              } else {
    this.mailDoc({
    bUI: false,
    cTo: "[email protected]",
    cSubject: "Form" + " " + this.getField("SiteName01").value + " " + this.getField("SysSN").value + " " + this.getField("Date").value,
    I'm getting nothing when the required fields are not filled in, which I rather expected. However, when all fields are filled in I am still getting no response from the button. The mailDoc bit of code is working fine with no other code attached, but every attempt at validating the form's required fields is causing trouble.
    A thought occurs to me (I'm new at JS coding), but this code is referencing EVERY field in the document, right? This would mean I should get no result even if the non-required fields are filled out (if my understanding is correct). Can this code be modified to only apply to required fields? Thanks for the help in getting this far.
    Using Acrobat 9.

Maybe you are looking for

  • I can no longer delete audiobook tracks from my iphone after I have listened to them.

    This capability was available in previous versons of itunes

  • Treo 700p GSM

    I have a Treo 650 and a Treo 700p.  The 650 is not working and I have gsm phone service.  I have taken the phones apart and discovered that the SIM card module from the 650 fits on the 700 but, the 700 phone is locked by Verizon.  If I simply get the

  • I have a printer j4680

    please I own an hp laptop with vista 64 bit and I order a new laptop hp with win 7 can i use the wireless printer on both laptop

  • RE: APP

    Hi Experts, My client is giving advances to vendors using APP (F110) during APP user is unable to give long TEXT. system is picking up from respective field. Please let me know the behind the logic. 1) when we see line item level user wants long text

  • How to make an af:panelTabbed increase it height automatically

    Hi, I have an af:panelTabbed and i want to make it increase your height expand automatically acording to your content, without to put fix height (inlineStyle="height:600px") <af:panelTabbed id="ptab" styleClass="AFStretchWidth" inlineStyle="height:60