The code goes like this:
if { *condition* } {
ad_form -extend -name form_name -validate {
{var_name
{ *condition* }
"Message"
}
}
the problem is that even when the condition of the if statement is true, the validation doesnt work.
Thanks for your help.