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 erro if the type i

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 field valuenew quote custom button
ANUTEJANUTEJ (Salesforce Developers) 
Hi Sagar,

>> https://help.salesforce.com/articleView?id=000326325&type=1&mode=1

As mentioned in the above link, you can try prepopulating the parent record and check in the controller the picklist value and show an error if it is blank or none.

Let me know if it helps you and close your query by marking it as solved so that it can help others in the future.  

Thanks.