Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Validate if a field is present

 
Gigi Kent
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How are you hiding the field? If you are just hiding it with styles it will still be submitted with the form.
 
Gigi Kent
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic