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
Renu69Renu69 

where can Validation rule be given

Validation rule for a field in a standard object can be given through triggers/objects validation rule/ controllers.

is there any other way to do validation.

pgonzaleznetworkpgonzaleznetwork

You can make the field required...that's a type of data validation in that the field must have a value before the record is saved.

 

Why do you need another validation method? I think the ones you mention pretty much cover everything.

AroraAnupAroraAnup

Following means can be used to have a field level validation in SFDC:

 

1. Page layout (make a field required, however this will not be conditional)

2. Write a validation rule (this will fire based upon a condition i.e. will apply if the record meets a pre-defined criteria)

3. Use Apex logic to enforce validation on a field

 

Hope this helps!