• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Newbie no validation on Cancel button click.

 
John Baxter
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok I have a simple form with a Cancel button on it. The name text field
is a required field. However I don't want to check for validation when I click
the Cancel button.

What do I need to do?
 
Sergey Smirnov
Ranch Hand
Posts: 167
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
add attribute immediate="true" to your cancel button
 
Bujji Gadu
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
add attribute immediate="true" to your cancel button


Excellent. Thanks John. immediate="true" worked for my back button where I did not want any validations/messages.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic