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
kapilkumar shelkekapilkumar shelke 

salesforce validation :Create a formul field "result" which shows Pass if the marks field contains a value greater than 40, show fail if marks are less than 40

Best Answer chosen by kapilkumar shelke
Sagar PatilSagar Patil
Hi Kapilkumar,

Create a formula field with data type as Text.

Formula:
If(marks__c>40, 'Pass', 'Fail')

Note: Insert API name of marks field in formula.

Kindly mark this as a best answer if it solves your problem. It will help others to refer for similar kind of requirements.

Regards,
Sagar

All Answers

Sagar PatilSagar Patil
Hi Kapilkumar,

Create a formula field with data type as Text.

Formula:
If(marks__c>40, 'Pass', 'Fail')

Note: Insert API name of marks field in formula.

Kindly mark this as a best answer if it solves your problem. It will help others to refer for similar kind of requirements.

Regards,
Sagar
This was selected as the best answer
kapilkumar shelkekapilkumar shelke
Hi Sagar ,

Thank you so much , it works perfectly !!