questions regarding validator controls

  • Thread starter Thread starter Milsnips
  • Start date Start date
M

Milsnips

hi there,

i've got a form with 2 boxes, "New User" and "Existing User"

both have got input boxes with required validators, and both have got a
submit button, but whichever i press, it show the required fields even for
the other box.

is there a way around this, other than putting them on 2 separate forms?

thanks,
Paul
 
Paul,

While I'm a big fan of client side validation. I think the simplest thing
for you to do here would be to just put a label on the form and validate
this yourself server side.

If you really want to get it to work client side and server side then you
could write a custom validator.

Another possibility would be to use a javascript attached to each button's
click that set's the other text box's validator to disabled.

--
Sincerely,

S. Justin Gengo, MCP
Web Developer / Programmer

www.aboutfortunate.com

"Out of chaos comes order."
Nietzsche
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top