cocoman87

Forms - checkbox selected at least 1

Discussion created by cocoman87 on May 14, 2012
Latest reply on May 16, 2012 by cocoman87
hello

I wonder if from the forms and using or without using JSON notation, you can do that if you have several checkbox and only able to complete or submit the form if at least 1 checkbox is enabled.

I have little idea of JSON notation but I've managed to do is the following:

{Age: '1 year ',
     city: 'IT PAM 4.0',
     state: 'happy',
     hello: function (user) {
          alert ("Hi," form this.ciudad + + "I have" + this.edad + "I am" + this.estado + ", how are you" + user + "");
           }
};



and call it from an OnClick event

ca_fd.js.saludar ("User");

Outcomes