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
AlasAlas 

Is it possible to write a validation rule on FORMULA field, will it work

Is it possible to write a validation rule on FORMULA field, will it work

Best Answer chosen by Admin (Salesforce Developers) 
HariDineshHariDinesh

Hi,

 

You can write validation rule on Formula field. It will work.

 

If your formula violates the validation, then validation rule will fire.

But you cannot show validation message at particular field, only at top of the page.

 

All Answers

HariDineshHariDinesh

Hi,

 

You can write validation rule on Formula field. It will work.

 

If your formula violates the validation, then validation rule will fire.

But you cannot show validation message at particular field, only at top of the page.

 

This was selected as the best answer
NiketNiket

Yes, it is possible. You can create validation rule for a formula field same as any other field type.

 

Please mark it as the solution if it answers your question so that others can also take benifit.