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
Swati.dhingraSwati.dhingra 

validation rule

hi
 
I have four fields , where fourth field is accessible only if the first three fields are filled .
i want to write a validation rule for the same . Can somebody help me on this.
 
thanks in advance
Swati
MDXHikerMDXHiker
Swati

When you say accessible does that mean editable? SHoudl the 4th field be editable only when the 3 fields are populated ?

One way of doing this is have a rule which checks the 4th field and if value is found then make sure that 3 other fields also have a value. Or else error out and force the userr to follow the b-rule