SF Learners Hub

MASTER SALESFORCE, CONQUER YOUR GOALS

Salesforce Validation Rule Practice Question

Share This Post

Here’s a list of validation rule scenarios questions for practice, covering beginner to intermediate levels and Intermediate to Advanced levels: Beginner Level: Intermediate Level: Advanced

  1. Write a validation rule that prevents a Lead from being converted if the “Company” field is empty.
  2. Create a validation rule that requires the “Close Date” field on an Opportunity to be in the future.
  3. Implement a validation rule that enforces a minimum length of 8 characters for the “Password” field on a User object.
  4. Write a validation rule that requires the “Email” field on a Contact to be in a valid email format.
  5. Create a validation rule that prevents the “Status” field on a Case from being changed to “Closed” if the “Resolution” field is empty.
  6. Implement a validation rule that checks if the “Price” field on a Product record is greater than the “Cost” field.
  7. Write a validation rule that requires the “Due Date” field on a Task to be within a specific range, such as between the “Start Date” and “End Date” of a related Opportunity.
  8. Create a validation rule that ensures the “Shipping Address” fields on an Account are filled out if the “Shipping Address Same as Billing” checkbox is unchecked.
  9. Implement a validation rule that requires the “Birthdate” field on a Contact to be at least 18 years in the past.
  10. Write a validation rule that prevents a custom object record from being saved if the “Priority” field is set to “High” and the “Due Date” field is blank.
  11. Create a validation rule that requires the “Opportunity Stage” field to be set to “Closed Won” before the “Close Date” can be in the past.
  12. Write a validation rule that ensures the “Phone” field on a Lead or Contact is in a valid phone number format.
  13. Implement a validation rule that prevents a Case from being closed if the “Solution” field is blank.
  14. Create a validation rule that requires the “Start Date” field on an Event to be earlier than the “End Date” field.
  15. Write a validation rule that ensures the “Quantity” field on an Order or Opportunity Line Item is greater than zero.
  16. Implement a validation rule that prevents a custom object record from being saved if it is marked as “Archived” and certain required fields are blank.
  17. Create a validation rule that checks if the “Discount” field on a Quote is within a specific range, such as between 0% and 50%.
  18. Write a validation rule that requires the “Mailing Address” fields on a Lead to be filled out if the “Country” field is set to a specific value.
  19. Implement a validation rule that prevents a custom object record from being saved if the “Start Date” field is later than the “End Date” field.
  20. Create a validation rule that ensures the “Salary” field on an Employee record is greater than the “Minimum Salary” field on the associated Job record.
  21. Write a validation rule that requires the “Product Quantity” field on an Order to be less than or equal to the “Available Quantity” field on the associated Product record.
  22. Create a validation rule that prevents a Lead from being converted if the “Annual Revenue” field is less than a certain threshold.
  23. Implement a validation rule that checks if the “Invoice Date” field on an Invoice record is within a specific range, such as within the current fiscal year.
  24. Write a validation rule that ensures the “End Date” field on a Campaign is greater than or equal to the “Start Date” field.
  25. Create a validation rule that requires the “Payment Amount” field on an Opportunity to be greater than or equal to the “Total Amount” field.
  26. Implement a validation rule that prevents a custom object record from being saved if the “Priority” field is set to “High” and the “Due Date” field is in the past.
  27. Write a validation rule that checks if the “Approval Status” field on a Contract is set to “Approved” before the “Contract End Date” can be populated.
  28. Create a validation rule that ensures the “Discount Percentage” field on an Order is within a specific range, such as between 0% and 10%.
  29. Implement a validation rule that prevents a Lead from being created if the “Email” field is already associated with an existing Contact record.
  30. Write a validation rule that requires the “Revenue” field on an Opportunity to be greater than zero when the “Stage” field is set to “Closed Won”.
  31. Create a validation rule that ensures the “Expiration Date” field on a Contract is greater than or equal to the “Start Date” field.
  32. Write a validation rule that checks if the “Number of Employees” field on an Account is within a specific range, such as between 1 and 1000.
  33. Implement a validation rule that prevents a Lead from being converted if the “Company Size” field is blank.
  34. Create a validation rule that requires the “Due Date” field on a Task to be within a certain number of days from the “Created Date” field.
  35. Write a validation rule that ensures the “End Date” field on an Opportunity is greater than the “Close Date” field.
  36. Implement a validation rule that prevents a custom object record from being saved if it meets certain criteria based on a formula field.
  37. Create a validation rule that checks if the “Discount” field on a Quote is a multiple of 5%.
  38. Write a validation rule that requires the “Expected Revenue” field on an Opportunity to be greater than zero when the “Probability” field is 100%.
  39. Implement a validation rule that prevents a Contact from being saved if the “Mailing Postal Code” field does not match the associated Account’s postal code.
  40. Create a validation rule that ensures the “Quantity” field on a Custom Product record is a whole number.
  41. Write a validation rule that requires the “Stage” field on an Opportunity to be set to a specific value when the “Amount” field is greater than a certain threshold.
  42. Create a validation rule that checks if the “Phone” field on a Lead or Contact is in a valid phone number format based on the country selected in the “Country” field.
  43. Implement a validation rule that prevents a Case from being closed if the “Solution” field is empty and the “Status” field is set to “Closed”.
  44. Write a validation rule that requires the “Start Time” and “End Time” fields on an Event to be within business hours (e.g., 9 AM to 5 PM).
  45. Create a validation rule that checks if the “Quantity” field on an Order or Opportunity Line Item is within a specific range, such as between 1 and 100.
  46. Implement a validation rule that prevents a custom object record from being saved if the “Priority” field is set to “High” and the “Due Date” field is more than 7 days in the future.
  47. Write a validation rule that requires the “Email” field on a User record to be unique across all User records in the organization.
  48. Create a validation rule that ensures the “Expected Close Date” field on an Opportunity is within a specific range, such as within the next 30 days.
  49. Implement a validation rule that prevents a custom object record from being saved if the “Start Date” field is greater than the “End Date” field.
  50. Write a validation rule that checks if the “Annual Revenue” field on an Account is greater than the “Annual Revenue” field on the associated Parent Account.

Conclusion

5 Responses

Leave a Reply

Your email address will not be published. Required fields are marked *

Subscribe To Our Newsletter

Get updates and learn from the best

More To Explore

The Power of Salesforce Integration

What You’ll Learn What Is Salesforce Integration? Salesforce integration involves combining the data and features of Salesforce with another application, creating a cohesive experience for