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
csathishbabucsathishbabu 

validation for opportunity stage

Hi Guys,

             Actually my requirement is to validate a stage in opportunity evry time a opportunity is created,Picklist values in stage are 1.pre-reserve,2.reserve,3.confirm,4.bfore 2 weeeks,5.before 3days...like that,if suppose a user select a picklist value of 3.confirm directly at the time of creating opportunity error should be throw to alert the user to select 1.pre-reserve,as im new to ssalesforce i need ur suggestions,thanks for help in advance. 

Imran MohammedImran Mohammed

You can create a validation rule for that or do it with a trigger.

If you want to go with Validation rule here is how you should do in your error condition formula,

 

If( ISPICKVAL( StageName, 'confirm') , true, false)

And type the error message you want the User to be instructed in the Error message field.