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
- Write a validation rule that prevents a Lead from being converted if the “Company” field is empty.
- Create a validation rule that requires the “Close Date” field on an Opportunity to be in the future.
- Implement a validation rule that enforces a minimum length of 8 characters for the “Password” field on a User object.
- Write a validation rule that requires the “Email” field on a Contact to be in a valid email format.
- Create a validation rule that prevents the “Status” field on a Case from being changed to “Closed” if the “Resolution” field is empty.
- Implement a validation rule that checks if the “Price” field on a Product record is greater than the “Cost” field.
- 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.
- 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.
- Implement a validation rule that requires the “Birthdate” field on a Contact to be at least 18 years in the past.
- 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.
- 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.
- Write a validation rule that ensures the “Phone” field on a Lead or Contact is in a valid phone number format.
- Implement a validation rule that prevents a Case from being closed if the “Solution” field is blank.
- Create a validation rule that requires the “Start Date” field on an Event to be earlier than the “End Date” field.
- Write a validation rule that ensures the “Quantity” field on an Order or Opportunity Line Item is greater than zero.
- 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.
- Create a validation rule that checks if the “Discount” field on a Quote is within a specific range, such as between 0% and 50%.
- 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.
- 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.
- 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.
- 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.
- Create a validation rule that prevents a Lead from being converted if the “Annual Revenue” field is less than a certain threshold.
- 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.
- Write a validation rule that ensures the “End Date” field on a Campaign is greater than or equal to the “Start Date” field.
- Create a validation rule that requires the “Payment Amount” field on an Opportunity to be greater than or equal to the “Total Amount” field.
- 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.
- 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.
- Create a validation rule that ensures the “Discount Percentage” field on an Order is within a specific range, such as between 0% and 10%.
- Implement a validation rule that prevents a Lead from being created if the “Email” field is already associated with an existing Contact record.
- 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”.
- Create a validation rule that ensures the “Expiration Date” field on a Contract is greater than or equal to the “Start Date” field.
- 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.
- Implement a validation rule that prevents a Lead from being converted if the “Company Size” field is blank.
- 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.
- Write a validation rule that ensures the “End Date” field on an Opportunity is greater than the “Close Date” field.
- Implement a validation rule that prevents a custom object record from being saved if it meets certain criteria based on a formula field.
- Create a validation rule that checks if the “Discount” field on a Quote is a multiple of 5%.
- Write a validation rule that requires the “Expected Revenue” field on an Opportunity to be greater than zero when the “Probability” field is 100%.
- 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.
- Create a validation rule that ensures the “Quantity” field on a Custom Product record is a whole number.
- 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.
- 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.
- 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”.
- 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).
- 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.
- 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.
- Write a validation rule that requires the “Email” field on a User record to be unique across all User records in the organization.
- 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.
- 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.
- 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.
8 Responses
Can i get the answeres to confirm my results please? Thank you.
Please share your answer on mail id
email id-supratikpaul777@gmail.com
Please share the answer
Could you please share the answers please 🙏
please share the answer .
my email id. is singh.barsa@gmail.com
I am regular visitor, how are you everybody? This article posted
at this site is really good.
I hope these blog post are helpful to you. Thank you!
Great line up. We will be linking to this great article on our site. Keep up the good writing.