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


how to do validation for name field in visual force page

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:


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.