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
sagar077sagar077 

Hi Everyone, Please help me with this Requirement. On Opportunity object, I have picklist field and on opportunity object and i have one custom button with the name "New Quote" (its use to create new Quote) so I want to throw an error message if the type

Hi Everyone,
Please help me with this Requirement.
On Opportunity object, I have picklist field and on opportunity object and i have one custom button with the name "New Quote" (its use to create new Quote) so I want to throw an error message if the type is "none" or "black " and on the click of New Quote" before creating the quote.Picklist valuenew quote custom button
AnudeepAnudeep (Salesforce Developers) 
Please try creating a custom validation rule on the quote object

For sample quote validation rules, refer to this documentation

Let me know if this helps, if it does, please mark this answer as best so that others facing the same issue will find this information useful. Thank you
sagar077sagar077
Hi Anudeep,
Thanks for the reply. 

But it does not work for this Requirement.
I need to throw an error message if the Type is "none" or "black " (picklist field) on the opportunity object and on the click on "New Quote" button on the opportunity object