Checkbox Validation

Discussion in 'Templates customization' started by MontereyDean, Jul 1, 2005.

  1. MontereyDean

    MontereyDean New Member

    Joined:
    May 8, 2005
    Messages:
    6
    I added a checkbox to the signup page to verify that the person is 18 years or older. When I created the new field, I selected the "Required value" in the "Validation function" drop-down. However, there's no validation that way. Whether the box is checked or unchecked, the user can proceed.

    How do I validate a checkbox -- require that it be checked?

    Thanks!
  2. alex

    alex aMember Pro Customer Staff Member

    Joined:
    Jan 24, 2004
    Messages:
    6,021
    Checkbox field always have value - if field checked, it is 1, if field is not checked it is 0.

    So, it requires some additional programming to do what you need. If you need this implemented, contact us via helpdesk with ftp info and url.
  3. MontereyDean

    MontereyDean New Member

    Joined:
    May 8, 2005
    Messages:
    6
    Thanks for your reply. I found a little JavaScript script on the web that would validate it. But then I found I didn't need it. The requirement to be 18 years of age is in the agreement we use so I just changed the text on the agreement page to read "I'm 18 years of age or older ..." etc.

    (No, it's not an adult site; just that people using credit cards need to be 18 or older.)

    Thanks! I love aMember.

Share This Page