SF Learners Hub · Blog · About · Contact

Salesforce Validation Rule Practice Question

By Aman Garg · Published · Practice Questions

Salesforce Validation Rule Practice Question

Certainly, here are Some practical questions related to validation rules of  standard and Custom objects in Salesforce:

  1. create a validation rule that prevents the Lead Source field must be filled out when the Lead Status is set to “Qualified”?
  2. implement a validation rule to ensure that the Annual Revenue field is greater than zero for leads with a Lead Rating of “Hot”?
  3. create a validation rule that prevents the creation of duplicate Account Names within the same Account Type?
  4. create a validation rule that prevents the Account Rating field is populated when the Account Type is set to “Customer”?
  5. create a validation rule that prevents the Mailing City field is not left blank when the Mailing Country is set to “United States”?
  6. create a validation rule to enforce a specific format for the Contact Phone field, such as (XXX) XXX-XXXX?
  7. create a validation rule that prevents the Opportunity Amount requirement when the Opportunity Stage is set to “Closed Won”?
  8. create a validation rule to prevent the creation of Opportunities without associated Contacts?
  9. create a validation rule that prevents the Cases assigned to a specific Queue have a value populated in the Priority field?
  10. create a validation rule to enforce that the Case Description field must be filled out for Cases with certain Case Reason values?
  11. create a validation rule to ensure that the Product Quantity field is greater than zero?
  12. create a validation rule that prevents the Unit Price field is not blank for Pricebook entries?
  13. create a validation rule to prevent the creation of Pricebook entries with negative prices?
  14. create a validation rule that prevents the Quote Expiration Date field is in the future?
  15. create a validation rule to ensure that the Quote Total field is greater than zero?
  16. create a validation rule that prevents the Order Status field is not set to “Draft” when the Order is submitted for approval?
  17. create a validation rule to ensure that the Order Total field is calculated correctly based on the line items?
  18. create a validation rule that prevents the Contract Start Date is before the Contract End Date?
  19. create a validation rule to ensure that the Contract Amount field is greater than zero?
  20. create a validation rule to ensure that the Expected Revenue field is greater than zero?
  21. create a validation rule that prevents the Case Comment Body field is not left blank when a Case Comment is added?
  22. create a validation rule to restrict the creation of Case Comments on closed Cases?
  23. create a validation rule that prevents the Due Date field is in the future for Tasks?
  24. create a validation rule to require a value in the Subject field for Tasks related to certain record types?
  25. create a validation rule that prevents the Event Start Date is before the Event End Date?
  26. create a validation rule to prevent the creation of Events with overlapping time slots?
  27. create a validation rule that prevents the Solution Title field is not blank when creating a new Solution?
  28. create a validation rule to ensure that the Solution Status field is set to “Published” for Solutions intended for public use?
  29. create a validation rule that prevents the Unit Price field is greater than zero for Contract Line Items?
  30. create a validation rule to prevent the creation of Contract Line Items without associated Contracts?
  31. create a validation rule to ensure that the “Review Text” field is not left blank for reviews with a rating?
  32. create a validation rule that prevents the “Rating” field is within a specific range (e.g., 1-5) when submitting a product review?
  33. create a validation rule on project object to ensure that the Start Date is before the End Date for each Project?
  34. Create a Validation rule on Expense Object to Validate Expense Amount field is greater than zero for Expense records?
  35. create a validation rule to restrict the creation of Task Assignments with a Priority of “High” to specific user profiles?
  36. create a validation rule that prevents the Task Due Date is after the Task Assignment Date?
  37. create a validation rule to ensure that the Survey End Date is in the future?
  38. create a validation rule that prevents the Survey Title field is not left blank when creating a new Survey record?

Related articles

  • Validation Rule Practice Question – Part 2 — Validation rules are an essential feature in Salesforce that ensures data quality by enforcing specific conditions when users input data into fields. Whether…
  • LWC Practice Questions – Part 1 — In this blog post, we’ll explore the development of various Lightning Web Components (LWC) in Salesforce. We’ll cover creating basic components, handling…
  • Apex Collections Practice Questions — Create a list of strings and add five different city names to it. Then, remove the third city from the list and print the updated list. Create a list of…
  • Apex Trigger Scenarios – part 1 — Here’s a list of Apex trigger scenarios for practice, covering beginner to intermediate levels and Intermediate to Advanced levels: Beginner Level:…