How can I automically deselect a checkbox once the maximum number of checkboxes have been selected?

I found a script below online that works supposedly well. I just need to know how I can get this code to work in livecycle on my pdf form as I am a novice in coding. If someone can attach an example in pdf form that would be great. Thanks!
<SCRIPT LANGUAGE="javascript">
function KeepCount() {
var NewCount = 0
if (document.joe.dog.checked)
{NewCount = NewCount + 1}
if (document.joe.cat.checked)
{NewCount = NewCount + 1}
if (document.joe.pig.checked)
{NewCount = NewCount + 1}
if (document.joe.ferret.checked)
{NewCount = NewCount + 1}
if (document.joe.hampster.checked)
{NewCount = NewCount + 1}
  if (NewCount == 3)
alert('Pick Just Two Please')
document.joe; return false;
  </SCRIPT> 
I got this code from here: Checkboxes: Only Two

You have created the 3 maximum free accounts on that iPhone, you will have to use an already existing account.

Similar Messages

  • How can I change my bank account details on iCloud ?? I have been sent instructions via email from Apple but they don't appy ? Can anyone help ? Thanks in advance

    How can I change my bank account details on iCloud ?? I have been sent instructions from Apple via email and they don't appy ?? Can anyone help ? Thanks in advance

    You have to change it using iTunes on your computer, as explained here: Change or remove your payment information from your iTunes Store account (Apple ID) - Apple Support.  (This article: iCloud: View or change your iCloud payment information no longer works with iOS 8 or Yosemite.)

  • HT4061 i lost my Pad Please how can i track it ,I cannot remmeber the serial number.

    i lost my Pad Please how can i track it ,I cannot remmeber the serial number. Please help me find it

    Unless you enabled Find My iPad on it before it was lost then there isn't any way to locate it. If you did enable it then you could try locating it either via http://icloud.com on a computer or Find My iPhone / Find My iPad on another device - but that will only work if it's connected to a network and the device hasn't already been wiped and/or Find My iPad disabled on it.
    If you think that it was stolen then you should report it to the police. You should also change your iTunes account password, your email account passwords, and any passwords that you'd stored on websites/emails/notes etc.
    There are some methods described on this page for how you might be able to find the serial number :
    http://support.apple.com/kb/HT4061
    Or you could try your support profile : https://supportprofile.apple.com/MySupportProfile.do

  • How can I download itunes when I get the following errors...have installed and uninstalled a dozen times with various fixes...b noir for example and used Revo to clean up..ituneshelper did not install correctly error 7

    How can I download itunes when I get the following errors  ..ituneshelper did not install correctly error 7..I .have installed and uninstalled a dozen times with various fixes...b noir for example and used Revo to clean up.
    This has been a problem for 6 weeks now, I retry when I have time and patience and use my other laptop which is also Windows 7 and runs with no problem.
    Every attempt fails when all seems fine on the desktop and I try to log on to Itunes I get the errors.
    Any help greatly appreciated.
    billymac

    Go to Control Panel > Add or Remove Programs (Win XP) or Programs and Features(Later)
    Remove all of these items in the following order:
    iTunes
    Apple Software Update
    Apple Mobile Device Support (If this won't uninstall press on)
    Bonjour
    Apple Application Support
    Reboot, download iTunes, then reinstall, either using an account with administrative rights, or right-clicking the downloaded installer and selecting Run as Administrator.
    See also HT1925: Removing and Reinstalling iTunes for Windows XP or HT1923: Removing and reinstalling iTunes for Windows Vista, Windows 7, or Windows 8
    Should you get the error iTunes.exe - Entry Point Not Found after the above reinstall then copy QTMovieWin.dll from:
    C:\Program Files (x86)\Common Files\Apple\Apple Application Support
    and paste into:
    C:\Program Files (x86)\iTunes
    The above paths would be for a 64-bit machine. Hopefully the same fix with the " (x86)" omitted would work on 32-bit systems with the same error.
    tt2

  • How can I locate my ipad with only the serial number

    how can i locate my ipad with only the serial number

    you can't
    even with the IMEI number the police need a warrent to get such info from the carriers

  • How can I display date+time and not the point number in excell?

    Hi everyone,
    Could anybody tell me how I can save date + time to a file, so that  I can display on a diagram(excel) : date+time in (ox) and data (oy)? :
    My program sets in (ox) the point number and not the date+time....( although  date and time are written correctly in the column...)
    Any help would be great,
    Thanks,
    regards,
    Marc

    hi there,
    excel uses 01.01.1900 00:00 as the time offset, LabVIEW uses 01.01.1904 02:00, so you can't display the correct datetime in excel when you write the time as a fractional number of seconds from LabVIEW. you must format the datetime in LabVIEW to a string and write that to the column. use the "Format Date/Time String" - function and for example "%d.%m.%Y %H:%M:%S%3u" as the format string (see the functions help for more examples). you also could format your data to a string using "Format Into String" - function and write the file as a 2D string array. the decimal point you have to use depends on your system and its settings, but you can specify the decimal point in the Format string like "%.;%f" (means fractional number with point as decimal point).
    best regards
    chris 
    Best regards
    chris
    CL(A)Dly bending G-Force with LabVIEW
    famous last words: "oh my god, it is full of stars!"

  • How can I log into my itunes account to see if my contacts have been saved on my iphone?

    Before I purchase the Iphone 4  I want to be able to Transfer all my contacts, into the new phone.  How do I log into my itunes account and check and see if my contacts are there.... and then will a Sync with the new phone automatically add these contacts into the new phone?
    I have a itunes account but have only accessed while the iphone 3G is plugged in to the laptop.... How do I access the itunes site without the phone plugged into the laptop so that I can CHECK to see if my songs and contacts are really there?
    Todaymatters

    There are no Contacts in iTunes.
    iTunes syncs the Contacts from Outlook.
    and then will a Sync with the new phone automatically add these contacts into the new phone?
    Yes.
    How do I access the itunes site without the phone plugged into the laptop so that I can CHECK to see if my songs and contacts are really there?
    You don't access the iTunes store to see your music (or anything else)..
    You launch iTunes and your music is there, stored on yoru computer.
    You access the iTunes store to purchase items, which are then downloaded to your computer.

  • How can I set a "Read Receipt" so that I know my emails have been opened?

    I have Mail 2.1 and have gone through all the menus and cannot figure out how or what I need to do to get a read receipt email to find out if the messages I have sent to certain recipients have been opened. Does anyone know how to do this? Thanks so much!

    The Mail.app does not include this feature nor does it provide a read receipt without your knowledge when requested by the sender of a message. There is a Terminal command you can enter to request a read receipt for every sent message but not by individual message.
    Keep in mind, if the recipient's email client supports providing a read receipt when requested by the sender of a message, the recipient also has the ability to deny providing a read receipt for messages read if requested by the sender.
    I use Windows Outlook at work and I don't request a read receipt for sent messages nor do I provide it when requested by the sender of a message.

  • "Over capacity": How can I delete photos from iPhone / set the maximum capacity of iCloud photos to be downloaded to iPhone?

    Hi,
    My iPhone regularily goes over capacity because it stores, or tries to store, too many photos/videos from iCloud on the device.
    How can I delete photos from the iPhone (but not generally from iCloud/Photostream). How can set the maximum capacity of iCloud photos to be downloaded to iPhone? (I am searching for a setting like "keep the last 2GB of photos/videos from iCloud/Photostream, but not more than that. I know how to turn iCloud off in total, but that is not what I would prefer to do, I just would like to set reasonable maximum.)
    Thank you for your ideas!
    Generally, I someone could point me to a good tutorial on how local photos vs. iCloud photos vs. Photostream are supposed to work that would be great as well, because I have many other problem with Apple's system in that regard as well (esp., despite that obviously a lot of space is taken up by photos/videos on my device, my iPhone still downloads recent photos/videos over 3G... I also have the problem that all photos appear double if I try to copy to my Mac with ImageCapture or iPhoto, but there is only a single copy (no HDR, burst or the like) when seen with the Photos.app of the iPhone itself... I came to believe that Apple's photo system is somewhere between counterintuitive and plainly not working... (/rant off) )

    Sorry there are no settings to set max capacity.
    My Photo Stream FAQ - Apple Support
    Get help using My Photo Stream - Apple Support
    iCloud: iCloud storage and backup overview

  • How can i identify my iPad generation with the model number in the settings app

    I can't see the back of my iPad because my case is stuck on it. Hence I would like to know is there a way to figure out your iPad generation by having the model number on your settings app. Mine is MD527AE/A

    Thanks ! How did you figure that out so soon, I've been going crazy googling and trying to find it !
    Thanks again

  • How can I find MAC address based on the serial number of a missing IpodTouch 4th Gen?

    My Ipod touch 4th Generation is lost.  If I can find the MAC address, the Univeristy can help locate the device.  I have the serial number, is there any way I can find the MAC address based on the serial number?  I did not install a third party app on the IPod to help find it and it is not registered on iCloud, but I used it on iCloud.  Any ideas are greatly appreciated.

    Did you turn on FindMyiPd is Settings>iCloud and is the iPod connected to wifi? That is all that is needed for for Apple FindMyiPhone
    Maybe Apple can find the MAC address
    Apple - Support - iPod touch - Contact Us
    Your question has been asked in the past but no one has responded if Apple could actually help

  • Good day. can i track my lost 4s using the serial number, cause i have activated the i cloud and still no suceess...

    Lost my Iphone 4 s. i tried tracking it with i cloud to no success, and i use the serial number to track it?

    No, you can not. In order your phone to be tracked via iCloud it has to be connected to Internet (Data ir WiFi). You may check box "notify me when found" to be alerted when it gets online.

  • How can i get a counter to tell me how many checkboxes have been selected?

    package arabiclanguagelearning;
    import java.awt.BorderLayout;
    import java.awt.Frame;
    import javax.swing.JDialog;
    import javax.swing.JPanel;
    import java.awt.Rectangle;
    import javax.swing.JTextArea;
    import com.borland.jbcl.layout.VerticalFlowLayout;
    import javax.swing.JLabel;
    import javax.swing.*;
    import java.awt.Color;
    import java.awt.Font;
    import java.awt.Toolkit;
    import java.awt.Image;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import java.awt.CheckboxGroup;
    import java.awt.event.ItemListener;
    import java.awt.event.ItemEvent;
    import java.awt.event.KeyEvent;
    * <p>Title: Arabic Language Learning</p>
    * <p>Description: </p>
    * <p>Copyright: Copyright (c) 2007</p>
    * <p>Company: </p>
    * @author iPortal
    * @version 1.0
    public class ReadingTest extends JDialog implements ItemListener{
        //ImageIcon myImage = new ImageIcon("image.jpg");
        JPanel panel1 = new JPanel();
        JLabel jLabel1 = new JLabel();
        JLabel jLabel3 = new JLabel();
        JButton jButton1 = new JButton(new ImageIcon ("image.jpg"));
        ButtonGroup question1 = new ButtonGroup();
        CheckboxGroup question2 = new CheckboxGroup();
        JTextArea question1Text = new JTextArea();
        JRadioButton q1A = new JRadioButton();
        JRadioButton q1B = new JRadioButton();
        JRadioButton q1C = new JRadioButton();
        JTextArea question2Text = new JTextArea();
        JTextField question2TextArabic = new JTextField();
        JCheckBox jCheckBox1 = new JCheckBox();
        JCheckBox jCheckBox2 = new JCheckBox();
        JCheckBox jCheckBox3 = new JCheckBox();
        JCheckBox jCheckBox4 = new JCheckBox();
        JLabel jLabel2 = new JLabel();
        StringBuffer choices;
        //will keep a count on how many checkboxes selected for question 2
        int count;
        JLabel jLabel4 = new JLabel();
        JLabel jLabel5 = new JLabel();
        JLabel jLabel6 = new JLabel();
        JButton Submit = new JButton();
        JLabel jLabel7 = new JLabel();
        public ReadingTest(Frame owner, String title, boolean modal) {
            super(owner, title, modal);
            try {
                setDefaultCloseOperation(DISPOSE_ON_CLOSE);
                jbInit();
                pack();
            } catch (Exception exception) {
                exception.printStackTrace();
        public ReadingTest() {
            this(new Frame(), "ReadingTest", false);
        private void jbInit() throws Exception {
            panel1.setLayout(null);
            this.getContentPane().setLayout(null);
            jLabel1.setFont(new java.awt.Font("Tahoma", Font.BOLD, 24));
            jLabel1.setHorizontalAlignment(SwingConstants.CENTER);
            jLabel1.setIcon(null);
            jLabel1.setText("Welcome to the reading tutorial");
            jLabel1.setBounds(new Rectangle(49, 4, 509, 67));
            jLabel3.setFont(new java.awt.Font("Tahoma", Font.PLAIN, 14));
            jLabel3.setToolTipText("");
            jLabel3.setHorizontalAlignment(SwingConstants.CENTER);
            jLabel3.setHorizontalTextPosition(SwingConstants.CENTER);
            jLabel3.setText(
                    "Please answer the questions below after reading the text");
            jLabel3.setVerticalTextPosition(SwingConstants.TOP);
            jLabel3.setBounds(new Rectangle(48, 83, 515, 60));
            jButton1.setBounds(new Rectangle(509, 63, 98, 44));
            jButton1.setText("Hide me!");
            jButton1.addActionListener(new ReadingTest_jButton1_actionAdapter(this));
            question1Text.setBackground(Color.lightGray);
            question1Text.setFont(new java.awt.Font("Tahoma", Font.BOLD, 14));
            question1Text.setEditable(false);
            question1Text.setText("What is the first letter of the arabic alphabet?");
            question1Text.setBounds(new Rectangle(64, 158, 319, 19));
            q1A.setFont(new java.awt.Font("Tahoma", Font.BOLD, 16));
            q1A.setText("?");
            q1A.setBounds(new Rectangle(60, 189, 93, 23));
            q1B.setFont(new java.awt.Font("Tahoma", Font.BOLD, 16));
            q1B.setText("?");
            q1B.setBounds(new Rectangle(60, 214, 93, 23));
            q1C.setFont(new java.awt.Font("Tahoma", Font.BOLD, 16));
            q1C.setText("?");
            q1C.setBounds(new Rectangle(60, 241, 93, 23));
            question2Text.setBackground(Color.lightGray);
            question2Text.setFont(new java.awt.Font("Tahoma", Font.BOLD, 14));
            question2Text.setEditable(false);
            question2Text.setText(
                    "Choose the two correct words which finish the sentence.");
            question2Text.setBounds(new Rectangle(64, 281, 402, 19));
            question2TextArabic.setFont(new java.awt.Font("Tahoma", Font.BOLD, 16));
            question2TextArabic.setText("?? ????? ??????? ___ ???? ___ ?? ???????");
            question2TextArabic.setBounds(new Rectangle(63, 311, 404, 30));
            this.setForeground(Color.white);
            jCheckBox1.setFont(new java.awt.Font("Tahoma", Font.BOLD, 13));
            jCheckBox1.setText("????");
            jCheckBox1.setBounds(new Rectangle(63, 356, 81, 23));
            jCheckBox1.addActionListener(new ReadingTest_jCheckBox1_actionAdapter(this));
            jCheckBox1.addItemListener(this);
            jCheckBox2.setFont(new java.awt.Font("Tahoma", Font.BOLD, 13));
            jCheckBox2.setText("????");
            jCheckBox2.setBounds(new Rectangle(162, 356, 81, 23));
            jCheckBox2.addItemListener(this);
            jCheckBox3.setFont(new java.awt.Font("Tahoma", Font.BOLD, 13));
            jCheckBox3.setText("??????");
            jCheckBox3.setBounds(new Rectangle(260, 356, 81, 23));
            jCheckBox3.addItemListener(this);
            jCheckBox4.setFont(new java.awt.Font("Tahoma", Font.BOLD, 13));
            jCheckBox4.setText("?????");
            jCheckBox4.setBounds(new Rectangle(359, 355, 81, 23));
            jCheckBox4.addItemListener(this);
            jLabel2.setText("jLabel2");
            jLabel2.setBounds(new Rectangle(63, 402, 234, 32));
            jLabel4.setText("jLabel4");
            jLabel4.setBounds(new Rectangle(63, 433, 254, 28));
            jLabel5.setText("jLabel5");
            jLabel5.setBounds(new Rectangle(63, 465, 194, 37));
            jLabel6.setText("jLabel6");
            jLabel6.setBounds(new Rectangle(63, 500, 258, 32));
            Submit.setBounds(new Rectangle(507, 575, 115, 52));
            Submit.setText("Submit");
            Submit.addActionListener(new ReadingTest_Submit_actionAdapter(this));
            jLabel7.setText("jLabel7");
            jLabel7.setBounds(new Rectangle(472, 480, 95, 34));
            question1.add(q1A);
            question1.add(q1B);
            question1.add(q1C);
            this.getContentPane().add(panel1, null);
            this.getContentPane().add(Submit);
            panel1.add(jLabel1);
            panel1.add(jLabel3);
            panel1.add(q1A);
            panel1.add(q1B);
            panel1.add(q1C);
            panel1.add(question1Text);
            panel1.add(question2Text);
            panel1.add(question2TextArabic);
            panel1.add(jCheckBox1);
            panel1.add(jCheckBox2);
            panel1.add(jCheckBox3);
            panel1.add(jCheckBox4);
            panel1.add(jButton1);
            panel1.add(jLabel6);
            panel1.add(jLabel5);
            panel1.add(jLabel4);
            panel1.add(jLabel2);
            panel1.add(jLabel7);
            panel1.setBounds(new Rectangle(10, 10, 623, 549));
        public void jButton1_actionPerformed(ActionEvent e) {
            this.setVisible(false);
        public void itemStateChanged(ItemEvent e) {
            int index = 0;
            char c = '-';
            Object source = e.getItemSelectable();
    //count variable works fine in this part
            if (source == jCheckBox1) {
                index = 0;
                c = 'c';
                //assign new string variable the value of text for the checkbox
                String textSelected = jCheckBox1.getText();
                jLabel2.setText("You checked"+ textSelected);
                count = count + 1;
                jLabel7.setText(Integer.toString(count));
            } else if (source == jCheckBox2) {
                index = 1;
                c = 'g';
                String textSelected = jCheckBox2.getText();
                jLabel4.setText("You checked"+ textSelected);
                count = count + 1;
                jLabel7.setText(Integer.toString(count));
            } else if (source == jCheckBox3) {
                index = 2;
                c = 'h';
                String textSelected = jCheckBox3.getText();
                jLabel5.setText("You checked"+ textSelected);
                count = count + 1;
                jLabel7.setText(Integer.toString(count));
            } else if (source == jCheckBox4) {
                index = 3;
                c = 't';
                String textSelected = jCheckBox4.getText();
                jLabel6.setText("You checked"+ textSelected);
                count = count + 1;
                jLabel7.setText(Integer.toString(count));
            //Now that we know which button was pushed, find out
             //whether it was selected or deselected.
    //count variable does not work in this section.
             if (e.getStateChange() == ItemEvent.DESELECTED) {
                 c = '-';
                 Object deselectedItem = e.getItemSelectable();
                 if (deselectedItem==jCheckBox1)
                     jLabel2.setText("You deselected checkbox 1");
                     count = count - 1;
                     jLabel7.setText(Integer.toString(count));
                 else if (deselectedItem==jCheckBox2)
                     jLabel4.setText("You deselected checkbox 2");
                     count = count - 1;
                     jLabel7.setText(Integer.toString(count));
                 else if (deselectedItem==jCheckBox3)
                     jLabel5.setText("You deselected checkbox 3");
                     count = count - 1;
                     jLabel7.setText(Integer.toString(count));
                 else if (deselectedItem==jCheckBox4)
                     jLabel6.setText("You deselected checkbox 4");
                     count = count - 1;
                     jLabel7.setText(Integer.toString(count));
       

    you can call your_checkbox.isSelected() to know whether it's selected for all your check boxes !
    suppose you have an jcheckbox array : JCheckBox[] myCheckBoxArray = ...;
    int counter = 0;
    for(int i=0; i<myCheckBoxArray.legth; i++){
      if(myCheckBoxArray.isSelected())
      counter++;
    }and that's all

  • HT4539 how can i get a book out of the download queue? I have already downloaded it once.

    How do I delete a book of my download queue? I already downloaded one copy. I don't want to be charged for another copy.

    I THINK I have solved the problem. Can't be 100% because I don't want to try a restore. At least the Apple home page lites up correctly with quicktime now. It hadn't in the past.
    Thank you for your assistance. - LRB
    desktop   Windows XP  

  • TS3388 How can I view my account on itunes? E.g What purchases have been made from my itunes

    Im trying to view my account on itunes as I have had quite a few amounts going out? But I cant see exactly what the payments are for. How do I view this?

    If you log into your account on your computer's iTunes via the Store > View Account menu option, you should then see a Purchase History section with a 'see all' link to the right of it, click on that and you should then see a list of your account's purchases
    Viewing purchase history : http://support.apple.com/kb/HT2727

Maybe you are looking for