Javascript Validator help - how to require a field if checkbox is checked

Discussion in 'ASP General' started by ziggs, Dec 3, 2004.

  1. ziggs

    ziggs Guest

    I'm trying to find a reference to a validator code that will do the
    following.

    If checkbox called frmPrivate is checked (value=-1 is set for the value
    in this case) then I want to require the user to fill in a text box
    called name="CompanyName".
    Can someone point me in the right direction?
    TIA
     
    ziggs, Dec 3, 2004
    #1
    1. Advertising

  2. ziggs

    Jeff Cochran Guest

    On 3 Dec 2004 10:08:37 -0800, "ziggs" <> wrote:

    >I'm trying to find a reference to a validator code that will do the
    >following.
    >
    >If checkbox called frmPrivate is checked (value=-1 is set for the value
    >in this case) then I want to require the user to fill in a text box
    >called name="CompanyName".
    >Can someone point me in the right direction?


    Using ASP? You'd have to check it after the form is submitted to the
    server. For a Javascript solution, try the Javascript group or Google
    "javascript form validation".

    Jeff
     
    Jeff Cochran, Dec 3, 2004
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. =?Utf-8?B?QXNoYQ==?=

    required field validator not working for checkbox.

    =?Utf-8?B?QXNoYQ==?=, Oct 15, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    15,116
    Peter Blum
    Oct 15, 2004
  2. yurps
    Replies:
    1
    Views:
    6,901
    rajeshthangarasu1983
    Feb 29, 2008
  3. Emiliano
    Replies:
    2
    Views:
    323
    Rajesh.V
    Oct 16, 2003
  4. DettCom
    Replies:
    1
    Views:
    127
  5. randy
    Replies:
    13
    Views:
    454
    Tad McClellan
    Nov 1, 2003
Loading...

Share This Page