Want to avoid standard validation rules(like required fields) in Visualforce page when cancel button is clicked ?
By adding attribute "immediate = true " in apex:commandbutton you can avoid standard validation rules in visualforce page.
Please find below sample code
<apex:commandButton value="Click Me" immediate="true" action="{!selectedval}" rerender="table1" />
No comments:
Post a Comment