Either/or validator

  • Thread starter Thread starter Markus Palme
  • Start date Start date
M

Markus Palme

Hi NG!

The user has to enter some text in /one/ of /two/ textboxes, how can I
easily validate this?

Has anybody written a custom and free validator for this situtation?

Thanks
Markus
 
A CustomValidator would do the trick:

function testTextBoxes(source, arguments)
{
if(textbox1.value == "" && textbox2.value == "")
{
arguments.IsValid=false
}
else
{
arguments.IsValid=false
}
}
 
Back
Top