You need to sign in to do that
Don't have an account?
matt.byler
Validating fields in an object when clicking a button
I do not know if this is possible or not but decided to post and see if anyone has done this before. What I am trying to do is when a user clicks on a button it validates that certain fields are not blank. If there are blank fields it should disply an error message quite similar to validation rules. Let me know if there is any way I can do this.
SObject myObj = something;
Controller
Page
All Answers
SObject myObj = something;
Controller
Page
Check out Bob's blog posts here related to this. If it is not what you require, please provide more detail.
Part 1 (sObject Fields)
http://bobbuzzard.blogspot.com/2011/04/field-level-error-messages-with.html
Part 2 (Non sObject Fields)
http://bobbuzzard.blogspot.com/search?q=Field+Level+Error+Messages+with+Visualforce