| Author |
Validate if a field is present
|
Gigi Kent
Ranch Hand
Joined: Nov 30, 2004
Posts: 40
|
|
Hello. I'm using DynaValidatorForm and I'm using the validator. It works fine but I have a field who appears only if I click a button. I want to validate that field too but if is not present every time appears the validation for that field. So I want to validate only if is present. There is something like this ? Thanks.
|
 |
Kerry Wilson
Ranch Hand
Joined: Oct 29, 2003
Posts: 251
|
|
|
How are you hiding the field? If you are just hiding it with styles it will still be submitted with the form.
|
http://www.goodercode.com
SCJP 1.4
|
 |
Gigi Kent
Ranch Hand
Joined: Nov 30, 2004
Posts: 40
|
|
I don't hide the field. I have something like this: <logic resent name="test"> <html:text property="field1"> </logic resent> I hope is clear. Thanks.
|
 |
 |
|
|
subject: Validate if a field is present
|
|
|