+ Start a Discussion
Vladimir BessonovVladimir Bessonov 

how to restrict picklist selection only to the moment of object creation?

I want to create an object with some predefined and prefilled data depending on the selected Picklist value. But then the picklist shall no be active, which means it is impossible to change the picklist value? 

How to implement it? 
Abdul KhatriAbdul Khatri
Here are different ways you can achieve this funcationality
  • Make the picklist field Readonly (FLS) for that profile
  • Make the field Readonly on the Layout
  • Validate Rule to prevent change in those field
  • You can go Permission Set way based on how your org is design (Least recommended)
Vladimir BessonovVladimir Bessonov
USe shall be able to select the value fisrt and than it shall be not possible to change it. 
Readonly will not allow to selece initial value. 
I was looking for the easy pass to do it without triggers, classes, etc. 
 
Abdul KhatriAbdul Khatri
Validation Rule should be your way  using something like this
AND( 
 NOT( ISBLANK( PRIORVALUE( PICKLISTFIELD))),
 ISCHANGED(PICKLISTFIELD)  
)
Abdul KhatriAbdul Khatri
Hey,

Let me know if you are pretty new and feeling lost what I a asking you to do. Just for your help here is small tutorial how to get to the Validation Rule

User-added image
Abdul KhatriAbdul Khatri
Hey

any update?