1 Reply Latest reply on Jan 25, 2009 8:13 AM by JeanNiBee

    Video 7 - checkboxes broken

    JeanNiBee
      I have followed the tutorial through to Video 07 and when I deploy the compiled application in any browse Chrome, Firefox / IE.. The checkbox can be selected (Thus populating the mailing fields with the same info as in the home address fields) but the checkbox cannot be unchecked after that.

      Any help would be wonderful.

      thanks.
        • 1. Re: Video 7 - checkboxes broken
          JeanNiBee Level 1
          classic coding error...

          "Script" being called on click().

          if( sameAsHome.selected = true ) {
          mailAddress.text = homeAddress.text;
          mailCity.text = homeCity.text;
          mailProvince.selectedIndex = homeProvince.selectedIndex;
          mailPostal.text = homePostal.text;
          } else {
          mailAddress.text = "";
          mailCity.text = "";
          mailProvince.selectedIndex = 0;
          mailPostal.text = "";
          }

          Should have been:

          if( sameAsHome.selected == true ) { // stuff }

          ONE versus TWO erqual signs.

          ONE = assign the value (evertime I checked/unchecked I was setting it back to checked)
          TWO == comparison operator.

          Enjoy.