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
Nurav1982Nurav1982 

Validation Rule for making the fields not editable

Hello All,

I have a custom object with the following fields F1,F2 and F3.

I have a requirement to ensure that F1,F2 does not get updated if F3's value is "Processing".

Without using Apex, can we achieve this via validation rules ?
Best Answer chosen by Nurav1982
@anilbathula@@anilbathula@
Hi Nurav1982,

Try this validation rule:-

AND(F3='Processing',OR(ISCHANGED(F1),ISCHANGED(F2)))

Thanks
Anil.B

All Answers

ZedroidZedroid
Hi Nurav1982,

You can use javascript validation in visualforce page to check the whether to do action if F3's value is "Processing".

Regards,
Zedroid.
@anilbathula@@anilbathula@
Hi Nurav1982,

Try this validation rule:-

AND(F3='Processing',OR(ISCHANGED(F1),ISCHANGED(F2)))

Thanks
Anil.B
This was selected as the best answer
Nurav1982Nurav1982
Thanks Anil !

I figured it out by myself but mines looking slightly different like this

ISPICKVAL(F3,"Processing") &&
(OR(ISCHANGED(F1),ISCHANGED(F2)))