function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
vicky2489vicky2489 

validation

how to do validation for name field in visual force page

bob_buzzardbob_buzzard
Use a validation rule, code up the validation in an extension/custom controller or code up the validation in a trigger.
Chamil MadusankaChamil Madusanka

You can add a particular validation rule or can validate in trigger (before insert and before update) and add a <apex:pageMessages> tag in visualforce page. then errors will be displayed.

 

related posts:

http://boards.developerforce.com/t5/Visualforce-Development/Validation-rules-on-VisualForce-page/td-p/351113

http://www.salesforce.com/us/developer/docs/pages/Content/pages_controller_validation.htm

 

If you got the answer from this post, Please hit the Kudos button & mark the answer as solution, It might help others running to into similar problem in future.