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
steve456steve456 

Check Box=True in a validation rule

How to i give a check box field true if it meets a condition

 

 

Silly  but sensible

SRKSRK

Write a Workflow pur u r contion in action choss field update
choss the check box name from drop down & it automatically show u 2 values True or False

SRKSRK

U can not update any value from Validation rule

Validation Rules are just for Validation
for any kind of action u need Trigger or Workflow

steve456steve456

Its a validation rule

SRKSRK

You want to update the value of check as True

Or
You want to check either it's value is true or false

steve456steve456

I gve it that way but it gave me error

 

IF(ISPICKVAL(Status__c,"Active"),"",QA_Check__c=True)

 

 

 

SRKSRK

As i mention before

U can not update any value in record  from Validation rule
Validation Rules are just for Validation

 

for any kind of action (like update or insert) u need Trigger or Workflow

 

 

create a workflow
every time a record is creaed or edited & does not meet tha perviouse crtatria

set entry crtaita as Status__c, equal to"Active"

 

in action choss field update
chose QA_Check__c from dropdown & set it's value to true

If u can able to update the values from valiadtion rule why we need error msg
U can not update any value in record  from Validation rule

steve456steve456

Validation Rule