How do I add variables to different checkboxes without using the 'Export Value' and then add them together (if checked)?

Hello,
I am very new to JavaScript.  I would like to create a checkbox with a numerical value variable activated if the box is checked.  Unfortunately, I cannot use the 'Export Value' because I already need to use it for something else.
Any help is really appreciated.
Thanks,
Robyn

Brace yourself, here's your solution.
First of all, the export value of you checkboxes should definitly be the number of hours for the class since you will just add them up further.
Second, we will use the userName property for our second export value (its the field right under Name and its labeled "tooltip").  You will name the class there.
Finally, you need to name each checkbox with a number at the end starting with 1 all the way to 190.  This will be used in loops. ("whatever.1", "whatever.2,....."whatever.190")
In the calculate event of "total hours":
var sum = 0;  //declaring a variable that will be used in the loop
for (var i = 1; i <= 190; i++){    //this loop will scan through all your checkboxes
     if (this.getField("whatever."+i).isBoxChecked(0) == true){  //if box is checked....
          sum += Number(this.getField("whatever."+i).value);   //.....add its value to the sum
event.value = sum;  //display the total
Now for the course name field, we will use the same pattern in the calculate event
var courseList = new Array();  //declaring an empty array that will contain the courses
for (var i = 1; i <= 190; i++){    //this loop will scan through all your checkboxes
     if (this.getField("whatever."+i).isBoxChecked(0) == true){  //if box is checked....
          courseList.push(this.getField("whatever."+i).userName);   //.....add its userName (tooltip) to the array
event.value = "You are attending these courses:  "+courseList.join(", ")+".";  //display the array by turning it into a string and joining its items with ", "
You can try it out with just a few checkboxes at first.  Don't forget that the loop mustn't go further than the existing field or you will get an error and the script will stop.  Make sure no error show in the console (ctrl+J).

Similar Messages

  • I bought a used iPhone and found him email iCloud does not affect me so how can I deleted this email in order to use the device freely and privacy

    I bought a used iPhone and found him email iCloud does not affect me so how can I deleted this email in order to use the device freely and privacy
    help me please

    You can't. Return the phone for a refund, if you can, because without the previous owner's Apple ID/Password, you will not be able to re-activate the phone. It will be useless to you.
    Apple can't/won't help you with this.

  • I have a 1.5 hour video of a concert from which I need to extract several 'tracks' as individual files, and then join them together in a new video. How do I do this using imovie?

    I have a 1.5 hour video of a concert from which I need to extract several 'tracks' as individual files, and then join them together in a new video. How do I do this using imovie?

    Adobe has made this process much simpler in recent years.
    No need to re-install any version earlier than the current version (CS6). All installers (upgrade or full) contain the full program code. The difference between full and upgrade is in the serial number.
    All you need do is download (link below) and install CS6, enter the CS6 upgrade serial number then enter the CS5 serial number (even if that too is an upgrade).
    Download CS6 products

  • How do I unhide the URL window/field that allows me to directly enter a different URL without using the Search Window/field?

    I need to unhide the window or field that allows me to DIRECTLY enter a different URL. I do not want to use the search engine. I want to manually enter the URL of my choice and go DIRECTLY there.
    So, how do I unhide the URL window?

    It is still there at the left most part part of the address bar, but you have to press and hold the trackpad to use it.
    Click the Share (arrow out of the box) button  to add  bookmark.

  • How can I keepalive for 2 different applications without using script?

    Have a CSS with 2 web server loadbalanced. Initially the keepalive was set to ssl but now the client would like to add another keepalive type http. How can i do this without writing script. Though there is quite number of example in the forum but I'm still confused. Is there any clear and complete sample config for this type of installation.
    Below is the example of working config of my client.
    service server1
    ip address 10.150.1.10
    keepalive type ssl
    active
    service server2
    ip address 10.150.1.11
    keepalive type ssl
    active
    Owner Layer3
    content Layer3_a
    add service server1
    add service server2
    vip address 10.150.1.12
    balance aca
    advance-balance sticky-srcip

    If you want to use multiple keepalives for a service, you must use a script. The alternative would be to create 2 content rules, and 2 sets of services, one for port 80 (or whatever) and one for port 443 (or whatever), and use http for one and ssl for the other.
    Michael Voight
    CSE

  • How can I copy bookmarks from another PC without using the resotre not to loose the ones on the curtrent PC

    I want to copy bookmarks from another PC not using the restore function inorder not to delete bookmarks on current PC

    Export them to an HTML file, then import the HTML file to the other computer, that will add the bookmarks to those that already exist.
    * https://support.mozilla.com/kb/Exporting+bookmarks+to+an+HTML+file
    * https://support.mozilla.com/kb/Importing+Bookmarks+from+an+HTML+File

  • How to select rows or columns of tables without using the mouse?

    2nd post ever! Yeah! \m/
    In Excel, I can select entire rows or columns of data WITHIN TABLES--i.e., not selecting entire sheet rows or columns--by going to any cell on the perimeter of the table, holding down shift+ctrl, and clicking a direction arrow. So for example, if I have a table in columns D-G and rows 1-5, I can highlight row 4 by going to the first or last cell of that row, holding down the shift+ctrl, and hitting the appropriate direction arrow. You might think this is superfluous given that you can use the mouse to select cells. But that becomes cumbersome with large tables, and this method can be more efficient even with small tables.
    Similarly, it's often useful to navigate tables, particularly large ones, by moving from any cell within the table to the end or beginning of that row or column by holding down ctrl and hitting the appropriate arrow key. In Excel, this ctrl+arrow key method also allows you to skip blank cells, which is another very useful navigational feature.
    I tried numerous combos involving shift, ctrl, command, alt/option and the arrow keys. Haven't found a way to do any of this yet.
    Anyone?

    Hi Josh,
    Numbers is organized differently than Excel, and the navigation tools are different too. Many of us miss our particular favorites from spreadsheets past, but this is Numbers, not a clone. The biggest adjustment is to go from huge monolithic sheet-tables containing virtual sub-tables to a simple blank sheet with small tables, sometimes many per sheet. Navigating is no big deal in these small tables and neither is getting from one small table to another, using the Sheets pane.
    Selecting a particular Table is as easy as clicking on the table's name in the Sheets pane. Selecting a particular row, or column, or ranges of rows or columns is done by clicking on the table's row and column labels, left side and top side once a cell is selected in the table.
    Numbers is weak at handling large Tables and documents that are large overall. We know this and many of us still prefer it to the alternative when the tool fits the task.
    Jerry

  • I have an IPad Model number A1475. I want to search all emails from one certain sender, Mark them all at one time without doing each one individually, and then delete them all at one push of a button. How do I do this?

    I have an IPad Model A1475. I want search all emails from a certain sender, Mark them all at one time and delete them at one time. How do I do this?

    Nobody knows? Not even administrators?
    Please it would be really nice to have help on that to take all the benefit of the remote app.
    Thank you very much in advance.

  • How to set up two POP e-mail accounts using the same POP and SMTP servers

    I have an e-mail address based on a domain I purchased which is based on my company name. Now retired, I have purchased a new domain with a simpler, personalised name. My original e-mail account uses the incoming (POP3) and outgoing (SMTP) mail servers operated by my ISP; mail.btinternet.com.
    I have set up a new account on my PC in Microsoft Outlook, and have successfully sent and received emails using the new e-mail address taken from my new domain name.
    I have now tried to mirror this on my iPhone, but every time I enter all the relevant data for the new e-mail address, user name, password, mail servers etc., and then press 'save', I get a pop-up which says: "xxxx" is Already Added  This POP account has already been added to your iPhone. ("xxxx" is the name given to my original e-mail account).  Nowhere have I input "xxxx" in the course of setting up the new account.
    I need both accounts operational during an extended switch-over period as I alert everyone to the e-mail change over. Can anyone suggest a solution to this problem?

    What targeting the Mail.app preference file, do the following:
    Quit the Mail.app first and using the Finder, go to Home > Library > Mail. Copy the Mail folder and place the copy on the Desktop for backup purposes.
    Using the Finder, go to Home > Library > Preferences > com.apple.mail.plist. Move the com.apple.mail.plist file to the Desktop.
    Note: Moving the com.apple.mail.plist file out of the Preferences folder will require re-entering all email account information when re-launching Mail.
    The only exception to this is if you have a .Mac account which will be recreated automatically and/or if you created an email account as part of the computer setup assistant when first turning on the computer when new.
    Launch Mail and decline any prompt to import mailboxes. After re-entering all email account information, the Mail.app should rediscover the existing account named folders and mailbox files at Home > Library > Mail.
    After confirming all mailboxes were successfully rediscovered, you can delete the copy of the Mail folder and old com.apple.mail.plist file from the Desktop.
    Test if this resolves the problem.

  • How can I move my 31K photos to a standalone drive in folders and then import them back to edit and then perhaps return them to iphoto and library to produce slide shows

    I want to move my photos into folders, which reflect the contents of iphoto events , to a standalone hard drive. Subsequently I intend to return them a few at a time to edit in Elements. Once  they are edited I may return groups to iphoto to organize into slide shows. As things stand now, my iMac drive is rapidly filling  up. I do not use raw files so I want to move Jpegs and edit them.
    David

    I'm with Léonie. That's a very (and unnecessarily) complicated plan you have there. As Léonie says you can just set Elements as an external editor.
    To move a Library:
    Make sure the drive is formatted Mac OS Extended (Journaled)
    1. Quit iPhoto
    2. Copy the iPhoto Library from your Pictures Folder to the External Disk.
    3. Hold down the option (or alt) key while launching iPhoto. From the resulting menu select 'Choose Library' and navigate to the new location. From that point on this will be the default location of your library.
    4. Test the library and when you're sure all is well, trash the one on your internal HD to free up space.
    Regards
    TD

  • How can pine users access their iPlanet account without identifying first to login, and then when they run pine?

    At University we have just completed migration to iPlanet Messaging Server 5.2. Users of UNIX and pine now have to identify twice to get email. As stated in the question, they have to login to their shell, and then pine forces another login. Each additional time they run pine to check email it requires a new login.
    Is there any way to get rid of the additional authorizations required to read email after someone is successfully authenticated to our own student/faculty servers? Perhaps adding some sort of Kerberos ticket system?
    Thank You

    At University we have just completed migration to iPlanet Messaging Server 5.2. Users of UNIX and pine now have to identify twice to get email. As stated in the question, they have to login to their shell, and then pine forces another login. Each additional time they run pine to check email it requires a new login.
    Is there any way to get rid of the additional authorizations required to read email after someone is successfully authenticated to our own student/faculty servers? Perhaps adding some sort of Kerberos ticket system?
    Thank You

  • How can i turn off Find My iPad without using the iPad?

    My swipe screen has stopped working completely on my iPad. Very disappointing as it is only 18 months old and has been well looked after! I have tried holding down the off/on button and menu button to reboot but this doesn't work. I have now logged the fault with Apple and have an appointment to see someone in the support team this Monday. However, I wanted to try one more thing. I want to restore to factory settings as I've read that this could resolve the problem. When I plug it in to iTunes and try to restore iPad i get a warning message telling me I need to go to iCloud settings on my iPad and turn off Find My iPad before restoring. As I cannot use the iPad I cant do it from there. Is there another way? Please help me, I want to weep!

    FORCE IPAD INTO RECOVERY MODE (this will disable Find My iPhone)
    1. Turn off iPad
    2. Turn on computer and launch iTunes (make sure you have the latest version of iTune)
    3. Plug USB cable into computer's USB port
    4. Hold Home button down and plug the other end of cable into docking port.
    DO NOT RELEASE BUTTON until you see picture of iTunes and plug
    5. Release Home button.
    ON COMPUTER
    6. iTunes has detected iPad in recovery mode. You must restore this iPad before it can be used with iTunes.
    7. Select "Restore iPad"...
    Note:
    1. Data will be lost if you do not have backup
    2. You must follow step 1 to step 4 VERY CLOSELY.
    3. Repeat the process if necessary.

  • How do I sync iPhone contacts to mac WITHOUT using the iCloud??

    I don't trust the Cloud. Is there any other way?

    You can't use iTunes to sync contacts and calendars in Mavericks.
    That feature is reportedly returning in OS X 10.9.3 which is not out yet.

  • Email appears "Frozen". If I delete the affected account and then add the account back will I lose my email? Contacts? Notes?

    Email appears "frozen". If I delete affected email account and then restore it will I lose my email? Contacts? Notes?
    thank you

    Wpros on old IPad and with Yahoo mail app just fine. 

  • When i open my mail i have many recipes and so i usually take my mouse and click on the first recipe it turns blue then i take my mouse and drag all the way down to mark the recipies blue and then move them to a folder i cannot do that anymore how to

    Hi can someone please fix my problem for me! when I open my mail I have many recipes and so I click my mouse on one of the recipes and it turns blue , then i used to be able to drag my mouse down so all of the recipes are blue and then move them to my folder. now I cannot do that what happened!!!!!

    Click (and release) the first, hold the shift key while clicking the last.

Maybe you are looking for

  • Printing with a networked Canon iR 3220 and my Intel iMac

    I am at my wits end and I hope someone can help. I am the sole Mac user in my company. I have a brand new, shiny 24" dual processor (intel) iMac running OS 10.4.9, that is connecting wirelessly to our network. We have a mixture of IIS and Linux serve

  • Error FRM-30312 while compiling a custom pll library on forms 11g weblogic

    hi, this is my case: Im trying to upgrade a forms 10g application to 11g, using FORMS 11g v11.1.1.3 and WEBLOGIC server v10.3.3. Forms files compiled correctly, also webutil.pll was correctly compiled. but if I try to compile my custom pll I can see

  • Copying Key Figure

    I have created an agg. level on a plan cube to input Planned Hours at a cost center level (Employee Excluded from Agg Level). I then want to assign these planned hours to EVERY employee within that cost center. I currently have Master Cost Center as

  • I want to add some music to my phone, but I kinda need to sidestep syncing my phone to iTunes.

    First off, my mom bought my computer from someone somewhere, I'm hazy on the details, but in any case, it came with an enormouse amount of songs (close to 4000, I believe). I figured that I might like some of it, so I imported all of it to iTunes and

  • Exchange Provisioning - Error (User Has been deleted from AD)

    Hello Experts, User has been provisioned to AD successfully and I verified it manually by logging into AD server. But when I provision Exchange to User "Create Mailbox" task failed with the following error message "User Has been Deleted from AD". I a