Can we freeze a field?

Hi All,

In Opportunity: We have defined the Probability on the basis of Sales Stage (Dynamic Dropdown), like for Closed Won: Probability would be 100% and for Closed Lost, it’d be 0%, but as Probability field is Edittable so Sales person keep changing the value of Probability, due to which data is coming wrong.

Can we freeze this field?

Many thanks!

There are many ways to approach this.

Maybe a simple one is to add a before_save logic_hook where you just replace whatever is in the Probability box with what was there before (fetched_row) so that the change never takes effect.

You might need to add some condition to this code so that the changes you do want to make (setting Probability when Stage changes) keep working.