You need to sign in to do that
Don't have an account?
Mac Swift
validation rule on the Quote Line Item
I need to write a validation rule on the Quote Line Item that if my formula field "Product" contains some letter for example "ABC". Then it is required to mention the reason in the "Reason" field on the Quote Line Item. Please help me guys.
You need to write this validation under "Quote Line Item Validation Rules" and minor modification is
AND(!ISBLANK(Product2.Product),CONTAINS(Product2.Product, "ABC"),ISBLANK(Product2.Reason))
All Answers
Assuming both the fields are on same object, can try as below:
AND(!ISBLANK(Product),CONTAINS(Product, "ABC"),ISBLANK(Reason))
You need to write this validation under "Quote Line Item Validation Rules" and minor modification is
AND(!ISBLANK(Product2.Product),CONTAINS(Product2.Product, "ABC"),ISBLANK(Product2.Reason))
I am able to resolve my issue.
Could you help me with one more query. In the same scenario if we want to change the field type to lookup what would be the validation formula?
I mean if we have the Custom lookup field - "Vendor". If any value is selected in this field we want to make the "Reason" field mandatory on quote line item.
Complete Scenario is - If we select any value in Custom lookup field - "Vendor" on the quote line item, then "Reason" field is mandatory on quote line item. (Nothing related to the Product name contains "ABC")